Ignore:
Timestamp:
Dec 4, 2023, 11:33:25 PM (12 months ago)
Author:
chronos
Message:
  • Fixed: Scaling on Windows.
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/Packages/CevoComponents/ScreenTools.pas

    r474 r477  
    874874  {$IFDEF WINDOWS}
    875875  // LCLIntf.BitBlt is slower than direct Windows BitBlt
    876   Result := Windows.BitBlt(DestCanvas.Handle, X, Y, Width, Height, SrcCanvas.Handle, XSrc, YSrc, Rop);
     876  Result := Windows.BitBlt(DestCanvas.Handle, ScaleToNative(X), ScaleToNative(Y),
     877    ScaleToNative(Width), ScaleToNative(Height), SrcCanvas.Handle,
     878    ScaleToNative(XSrc), ScaleToNative(YSrc), Rop);
    877879  {$ELSE}
    878880  Result := BitBlt(DestCanvas.Handle, X, Y, Width, Height, SrcCanvas.Handle, XSrc, YSrc, Rop);
Note: See TracChangeset for help on using the changeset viewer.