mirror of
https://github.com/AquariaOSE/Aquaria.git
synced 2025-08-06 06:10:27 +00:00
prevent jerkiness when creating window in fullscreen mode
This commit is contained in:
parent
067472d61b
commit
37fa087c2e
1 changed files with 4 additions and 1 deletions
|
@ -105,7 +105,10 @@ void Window::_open(unsigned w, unsigned h, bool full, unsigned bpp, bool vsync,
|
||||||
exit_error("Failed to create GL context");
|
exit_error("Failed to create GL context");
|
||||||
SDL_GL_MakeCurrent(WIN, GLCTX);
|
SDL_GL_MakeCurrent(WIN, GLCTX);
|
||||||
|
|
||||||
_adjust(w, h, full, bpp, vsync, display, hz);
|
setvsync(vsync);
|
||||||
|
|
||||||
|
if(!full) // When we're in fullscreen mode everything is fine by now
|
||||||
|
_adjust(w, h, full, bpp, vsync, display, hz);
|
||||||
}
|
}
|
||||||
|
|
||||||
void Window::_adjust(unsigned w, unsigned h, bool full, unsigned bpp, bool vsync, unsigned display, unsigned hz)
|
void Window::_adjust(unsigned w, unsigned h, bool full, unsigned bpp, bool vsync, unsigned display, unsigned hz)
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue