Ignore:
Timestamp:
May 9, 2020, 9:35:25 PM (5 years ago)
Author:
chronos
Message:
  • Fixed: Better High DPI scaling on highdpi branch.
File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/highdpi/Packages/CevoComponents/DrawDlg.pas

    r210 r212  
    128128  {$IFDEF LINUX}
    129129  // HitTest is not supported under Linux GTK2 so use form inside move mechanizm
    130   NewFormPos := ScreenToClient(Mouse.CursorPos);
     130  NewFormPos := ScreenToClient(DpiMouse.CursorPos);
    131131  if (NewFormPos.X >= 0) and (NewFormPos.X < Width) and
    132132    (NewFormPos.Y >= 0) and (NewFormPos.Y < Height) then begin
    133133    MoveMousePos := ClientToScreen(Point(X, Y));
    134134    MoveFormPos := Point(Left, Top);
    135     MousePosNew := Mouse.CursorPos;
     135    MousePosNew := DpiMouse.CursorPos;
    136136    // Activate move only if mouse position was not changed during inherited call
    137137    if (MousePosNew.X = MoveMousePos.X) and (MousePosNew.Y = MoveMousePos.Y) then begin
Note: See TracChangeset for help on using the changeset viewer.