Ignore:
Timestamp:
Jun 23, 2019, 3:15:29 PM (5 years ago)
Author:
chronos
Message:
  • Modified: Use DpiControls package for High DPI support.
File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/highdpi/Back.pas

    r105 r178  
    55
    66uses
    7   LCLIntf, LCLType, SysUtils, Classes, Graphics, Forms, Controls;
     7  LCLIntf, LCLType, SysUtils, Classes, Graphics, Forms, Controls, UDpiControls;
    88
    99type
     
    1818    procedure FormClose(Sender: TObject; var Action: TCloseAction);
    1919  private
    20     Img: TBitmap;
     20    Img: TDpiBitmap;
    2121  end;
    2222
     
    4444      FileName := HomeDir + 'Graphics' + DirectorySeparator + 'Background.png';
    4545      if FileExists(FileName) then begin
    46         Img := TBitmap.Create;
     46        Img := TDpiBitmap.Create;
    4747        LoadGraphicFile(img, FileName);
    4848      end;
Note: See TracChangeset for help on using the changeset viewer.