mirror of
https://gitlab.com/freepascal.org/lazarus/lazarus.git
synced 2025-09-03 12:00:35 +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;
|
OldPoint: PPoint) : Boolean;
|
||||||
var
|
var
|
||||||
DevCtx: TGtkDeviceContext absolute DC;
|
DevCtx: TGtkDeviceContext absolute DC;
|
||||||
|
|
||||||
OldP: TPoint;
|
OldP: TPoint;
|
||||||
begin
|
begin
|
||||||
//DebugLn('[TGtkWidgetSet.SetWindowOrgEx] ',NewX,' ',NewY);
|
//DebugLn('[TGtkWidgetSet.SetWindowOrgEx] ',NewX,' ',NewY);
|
||||||
GetWindowOrgEx(DC,@OldP);
|
GetWindowOrgEx(DC, @OldP);
|
||||||
Result := MoveWindowOrgEx(DC,NewX-OldP.X,NewY-OldP.Y);
|
Result := MoveWindowOrgEx(DC, -NewX - OldP.X, -NewY - OldP.Y);
|
||||||
if OldPoint<>nil then
|
if OldPoint <> nil then
|
||||||
OldPoint^:=OldP;
|
OldPoint^ := OldP;
|
||||||
end;
|
end;
|
||||||
|
|
||||||
{------------------------------------------------------------------------------
|
{------------------------------------------------------------------------------
|
||||||
|
Loading…
Reference in New Issue
Block a user