Ignore:
Timestamp:
May 9, 2020, 4:02:07 PM (5 years ago)
Author:
chronos
Message:
  • Modified: Improved HighDPI branch. Imported new changes from trunk branch.
File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/highdpi/Packages/CevoComponents/BaseWin.pas

    r193 r210  
    44
    55uses
    6   ScreenTools, LCLIntf, LCLType, SysUtils, Classes, Graphics, Controls, Forms,
    7   DrawDlg, UDpiControls;
     6  UDpiControls, ScreenTools, LCLIntf, LCLType, SysUtils, Classes, Graphics, Controls, Forms,
     7  DrawDlg;
    88
    99type
     
    100100  TitleHeight := WideFrame;
    101101  ModalFrameIndent := 45;
    102   UserLeft := (Screen.Width - Width) div 2;
    103   UserTop := (Screen.Height - Height) div 2;
     102  UserLeft := (DpiScreen.Width - Width) div 2;
     103  UserTop := (DpiScreen.Height - Height) div 2;
    104104end;
    105105
     
    165165procedure TBufferedDrawDlg.VPaint;
    166166begin
    167   DpiBitBlt(Canvas.Handle, 0, 0, ClientWidth, ClientHeight,
    168     Offscreen.Canvas.Handle, 0, 0, SRCCOPY);
     167  DpiBitCanvas(Canvas, 0, 0, ClientWidth, ClientHeight, Offscreen.Canvas, 0, 0);
    169168end;
    170169
     
    238237  SaveOnShow, SaveOnPaint: TNotifyEvent;
    239238begin
    240   Top := Screen.Height;
     239  Top := DpiScreen.Height;
    241240  SaveOnShow := OnShow;
    242241  OnShow := nil;
     
    454453    end;
    455454
    456   DpiBitBlt(Canvas.Handle, SideFrame, TitleHeight, ClientWidth - 2 * SideFrame,
    457     InnerBottom - TitleHeight, Offscreen.Canvas.Handle, 0, 0, SRCCOPY);
     455  DpiBitCanvas(Canvas, SideFrame, TitleHeight, ClientWidth - 2 * SideFrame,
     456    InnerBottom - TitleHeight, Offscreen.Canvas, 0, 0);
    458457end;
    459458
Note: See TracChangeset for help on using the changeset viewer.