Skip to content

Commit

Permalink
Fixed bug with storing and not restoring window position
Browse files Browse the repository at this point in the history
  • Loading branch information
furious-programming committed Mar 17, 2024
1 parent 34abd0f commit 9b91511
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions source/Fairtris.Placement.pp
Expand Up @@ -98,12 +98,12 @@ function WindowHitTest(AWindow: PSDL_Window; const APoint: PSDL_Point; AData: Po
SDL_GetWindowSize(AWindow, nil, @Height);

if APoint^.Y < Round(Height * 0.2) then
Result := SDL_HITTEST_DRAGGABLE
else
begin
Result := SDL_HITTEST_NORMAL;
Result := SDL_HITTEST_DRAGGABLE;
Placement.ExposeWindow();
end;
end
else
Result := SDL_HITTEST_NORMAL;
end;
end;

Expand Down Expand Up @@ -325,7 +325,7 @@ procedure TPlacement.ExposeWindow();
if not FVideoEnabled then
begin
UpdateMonitor();
UpdateWindowBounds();
SDL_GetWindowPosition(Window.Window, @FWindowBounds.X, @FWindowBounds.Y);
end
end;

Expand Down

0 comments on commit 9b91511

Please sign in to comment.