Changeset 468 for trunk/Back.pas


Ignore:
Timestamp:
Dec 3, 2023, 11:28:08 AM (5 months ago)
Author:
chronos
Message:
  • Added: High DPI support integrated into trunk branch. It can be enabled by adding DPI define to compiler parameters for main project and packages.
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/Back.pas

    r422 r468  
    55
    66uses
    7   LCLIntf, LCLType, SysUtils, Classes, Graphics, Forms, Controls;
     7  LCLIntf, LCLType, SysUtils, Classes,
     8  {$IFDEF DPI}Dpi.Graphics, Dpi.Forms, Dpi.Controls{$ELSE}
     9  Graphics, Forms, Controls{$ENDIF};
    810
    911type
     
    2527var
    2628  Background: TBackground;
     29
    2730
    2831implementation
     
    6568begin
    6669  if FullScreen then begin
    67     WindowState := wsFullScreen;
     70    WindowState := TWindowState.wsFullScreen;
    6871    if not Assigned(Img) then begin
    6972      FileName := GetGraphicsDir + DirectorySeparator + 'Background.png';
     
    7578    end;
    7679  end else begin
    77     if WindowState <> wsMaximized then begin
    78       WindowState := wsNormal;
    79       WindowState := wsFullScreen;
     80    if WindowState <> TWindowState.wsMaximized then begin
     81      WindowState := TWindowState.wsNormal;
     82      WindowState := TWindowState.wsFullScreen;
    8083    end;
    81     WindowState := wsNormal;
     84    WindowState := TWindowState.wsNormal;
    8285    BoundsRect := Bounds(StartDlg.Left - 8, StartDlg.Top - 8,
    8386      StartDlg.Width + 16, StartDlg.Height + 16);
Note: See TracChangeset for help on using the changeset viewer.