Fixed display relative top-left coordinates

macos-click-through
Rasmus Michelsen 5 years ago
parent db3d8ef179
commit 628c06077c

@ -203,7 +203,7 @@ impl WindowWrapper {
// Set window to fullscreen
self.window.set_size(rect.width(), rect.height()).unwrap();
self.window.set_position(sdl2::video::WindowPos::Positioned(0), sdl2::video::WindowPos::Positioned(0));
self.window.set_position(sdl2::video::WindowPos::Positioned(rect.x()), sdl2::video::WindowPos::Positioned(rect.y()));
self.window.set_bordered(true);
}
}

Loading…
Cancel
Save