mirror of
https://gitlab.com/freepascal.org/lazarus/lazarus.git
synced 2025-09-02 18:20:30 +02:00
gtk: fix SetWindowOrgEx - it moved to the wrong direction
git-svn-id: trunk@24163 -
This commit is contained in:
parent
c4b2012cf1
commit
073fd0771e
@ -9484,14 +9484,13 @@ function TGtkWidgetSet.SetWindowOrgEx(DC : HDC; NewX, NewY : Integer;
|
||||
OldPoint: PPoint) : Boolean;
|
||||
var
|
||||
DevCtx: TGtkDeviceContext absolute DC;
|
||||
|
||||
OldP: TPoint;
|
||||
begin
|
||||
//DebugLn('[TGtkWidgetSet.SetWindowOrgEx] ',NewX,' ',NewY);
|
||||
GetWindowOrgEx(DC,@OldP);
|
||||
Result := MoveWindowOrgEx(DC,NewX-OldP.X,NewY-OldP.Y);
|
||||
if OldPoint<>nil then
|
||||
OldPoint^:=OldP;
|
||||
GetWindowOrgEx(DC, @OldP);
|
||||
Result := MoveWindowOrgEx(DC, -NewX - OldP.X, -NewY - OldP.Y);
|
||||
if OldPoint <> nil then
|
||||
OldPoint^ := OldP;
|
||||
end;
|
||||
|
||||
{------------------------------------------------------------------------------
|
||||
|
Loading…
Reference in New Issue
Block a user