Changeset 73 for trunk/Back.pas


Ignore:
Timestamp:
Jan 15, 2017, 4:12:10 PM (8 years ago)
Author:
chronos
Message:
  • Modified: All graphics images converted from BMP to PNG.
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/Back.pas

    r38 r73  
    3939begin
    4040  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
    4643      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
    5247    WindowState := wsNormal;
    5348    Width := StartDlg.Width + 16;
     
    5550    Left := StartDlg.Left - 8;
    5651    Top := StartDlg.Top - 8;
    57   end
     52  end;
    5853end;
    5954
     
    7570procedure TBackground.FormClose(Sender: TObject; var Action: TCloseAction);
    7671begin
    77   if img <> nil then
    78   begin
     72  if img <> nil then begin
    7973    img.Free;
    8074    img := nil
Note: See TracChangeset for help on using the changeset viewer.