Changeset 630 for trunk/Packages


Ignore:
Timestamp:
Oct 6, 2024, 10:50:51 AM (7 weeks ago)
Author:
chronos
Message:
  • Fixed: Invalidated rectangle in AI tournament was not properly scaled.
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/Packages/DpiControls/Dpi.Common.pas

    r617 r630  
    3838procedure WriteLog(Text: string);
    3939function GetSystemMetrics(nIndex: Integer): Integer;
     40function InvalidateRect(AHandle: HWND; ARect: PRect; BErase: Boolean): Boolean;
    4041
    4142resourcestring
     
    311312end;
    312313
     314function InvalidateRect(AHandle: HWND; ARect: PRect; BErase: Boolean): Boolean;
     315var
     316  NativeRect: TRect;
     317begin
     318  NativeRect := ScaleRectToNative(ARect^);
     319  Result := LCLIntf.InvalidateRect(AHandle, @NativeRect, BErase);
     320end;
     321
    313322function BitBlt(DestDC: HDC; X, Y, Width, Height: Integer; SrcDC: HDC; XSrc,
    314323  YSrc: Integer; Rop: DWORD = SRCCOPY): Boolean;
Note: See TracChangeset for help on using the changeset viewer.