Changeset 247 for branches/highdpi/Packages/DpiControls/UDpiControls.pas
- Timestamp:
- May 21, 2020, 10:30:59 PM (4 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/highdpi/Packages/DpiControls/UDpiControls.pas
r246 r247 6 6 7 7 uses 8 Classes, SysUtils, LCLProc, LResources, Forms, FormEditingIntf, ProjectIntf,8 Windows, Classes, SysUtils, LCLProc, LResources, Forms, FormEditingIntf, ProjectIntf, 9 9 Controls, StdCtrls, fgl, Graphics, ComCtrls, ExtCtrls, LCLType, GraphType, 10 10 Types, CustApp, LMessages, LCLIntf, Menus; … … 990 990 YSrc: Integer; Rop: DWORD = SRCCOPY): Boolean; 991 991 begin 992 Result := BitBlt(DestDC, ScaleToNative(X), ScaleToNative(Y), ScaleToNative(Width), 993 ScaleToNative(Height), SrcDC, ScaleToNative(XSrc), ScaleToNative(YSrc), Rop); 992 {$IFDEF WINDOWS} 993 // LCLIntf.BitBlt is slower than direct Windows BitBlt 994 Result := Windows.BitBlt(DestDC, ScaleToNative(X), ScaleToNative(Y), 995 ScaleToNative(Width), ScaleToNative(Height), SrcDC, 996 ScaleToNative(XSrc), ScaleToNative(YSrc), Rop); 997 {$ELSE} 998 Result := BitBlt(DestDC, ScaleToNative(X), ScaleToNative(Y), 999 ScaleToNative(Width), ScaleToNative(Height), SrcDC, 1000 ScaleToNative(XSrc), ScaleToNative(YSrc), Rop); 1001 {$ENDIF} 994 1002 end; 995 1003
Note:
See TracChangeset
for help on using the changeset viewer.