Changeset 630


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

Legend:

Unmodified
Added
Removed
  • trunk/NoTerm.pas

    r622 r630  
    77  ScreenTools, Protocol, Messg, LCLIntf, LCLType, DateUtils, Platform,
    88  SysUtils, Classes, ButtonB, DrawDlg,
    9   {$IFDEF DPI}Dpi.Graphics, Dpi.Controls, Dpi.Forms, System.UITypes{$ELSE}
     9  {$IFDEF DPI}Dpi.Graphics, Dpi.Controls, Dpi.Forms, Dpi.Common, System.UITypes{$ELSE}
    1010  Graphics, Controls, Forms{$ENDIF};
    1111
  • 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.