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/Packages/CevoComponents/BaseWin.pas

    r171 r178  
    55uses
    66  ScreenTools, LCLIntf, LCLType, SysUtils, Classes, Graphics, Controls, Forms,
    7   DrawDlg;
     7  DrawDlg, UDpiControls;
    88
    99type
     
    3232  public
    3333    UsedOffscreenWidth, UsedOffscreenHeight: integer;
    34     Offscreen: TBitmap;
    35     OffscreenUser: TForm;
     34    Offscreen: TDpiBitmap;
     35    OffscreenUser: TDpiForm;
    3636    property WindowMode: integer read FWindowMode;
    3737  end;
     
    7272  SideFrame = 9;
    7373
    74 procedure CreateOffscreen(var Offscreen: TBitmap);
     74procedure CreateOffscreen(var Offscreen: TDpiBitmap);
    7575procedure Register;
    7676
     
    494494end;
    495495
    496 procedure CreateOffscreen(var Offscreen: TBitmap);
     496procedure CreateOffscreen(var Offscreen: TDpiBitmap);
    497497begin
    498498  if Offscreen <> nil then
    499499    exit;
    500   Offscreen := TBitmap.Create;
     500  Offscreen := TDpiBitmap.Create;
    501501  Offscreen.PixelFormat := pf24bit;
    502502  if Screen.Height - yUnused < 480 then
Note: See TracChangeset for help on using the changeset viewer.