Changeset 518 for trunk/Packages/CevoComponents/ScreenTools.pas
- Timestamp:
- Jan 6, 2024, 12:07:04 AM (10 months ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/Packages/CevoComponents/ScreenTools.pas
r515 r518 892 892 begin 893 893 {$IFDEF WINDOWS} 894 // LCLIntf.BitBlt is slower than direct Windows BitBlt 895 Result := Windows.BitBlt(DestCanvas.Handle, ScaleToNative(X), ScaleToNative(Y), 896 ScaleToNative(Width), ScaleToNative(Height), SrcCanvas.Handle, 897 ScaleToNative(XSrc), ScaleToNative(YSrc), Rop); 894 {$IFDEF DPI} 895 Result := BitBlt(DestCanvas.Handle, X, Y, Width, Height, SrcCanvas.Handle, XSrc, YSrc, Rop); 896 {$ELSE} 897 // LCLIntf.BitBlt is slower than direct Windows BitBlt 898 Result := Windows.BitBlt(DestCanvas.Handle, ScaleToNative(X), ScaleToNative(Y), 899 ScaleToNative(Width), ScaleToNative(Height), SrcCanvas.Handle, 900 ScaleToNative(XSrc), ScaleToNative(YSrc), Rop); 901 {$ENDIF} 898 902 {$ELSE} 899 903 Result := BitBlt(DestCanvas.Handle, X, Y, Width, Height, SrcCanvas.Handle, XSrc, YSrc, Rop); … … 1788 1792 {$IFDEF DPI} 1789 1793 if CustomDpiEnabled then Screen.Dpi := CustomDpi 1790 else Screen.Dpi := 96; //Screen.GetSystemDpi;1794 else Screen.Dpi := Screen.GetSystemDpi; 1791 1795 {$ENDIF} 1792 1796 finally
Note:
See TracChangeset
for help on using the changeset viewer.