Changeset 73 for trunk/Back.pas
- Timestamp:
- Jan 15, 2017, 4:12:10 PM (8 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/Back.pas
r38 r73 39 39 begin 40 40 img := nil; 41 if FullScreen then 42 begin 43 if FileExists(HomeDir + 'Graphics' + DirectorySeparator + 'Background.bmp') or 44 FileExists(HomeDir + 'Graphics' + DirectorySeparator + 'Background.png') then 45 begin 41 if FullScreen then begin 42 if FileExists(HomeDir + 'Graphics' + DirectorySeparator + 'Background.png') then begin 46 43 img := TBitmap.Create; 47 LoadGraphicFile(img, HomeDir + 'Graphics' + DirectorySeparator + 'Background'); 48 end 49 end 50 else 51 begin 44 LoadGraphicFile(img, HomeDir + 'Graphics' + DirectorySeparator + 'Background.png'); 45 end; 46 end else begin 52 47 WindowState := wsNormal; 53 48 Width := StartDlg.Width + 16; … … 55 50 Left := StartDlg.Left - 8; 56 51 Top := StartDlg.Top - 8; 57 end 52 end; 58 53 end; 59 54 … … 75 70 procedure TBackground.FormClose(Sender: TObject; var Action: TCloseAction); 76 71 begin 77 if img <> nil then 78 begin 72 if img <> nil then begin 79 73 img.Free; 80 74 img := nil
Note:
See TracChangeset
for help on using the changeset viewer.