mirror of
https://github.com/kevinbentley/Descent3.git
synced 2026-04-10 02:00:05 -04:00
Fix mouse grab behavior
This commit is contained in:
@@ -460,9 +460,10 @@ int opengl_Setup(oeApplication *app, const int *width, const int *height) {
|
||||
LOG_ERROR.printf("OpenGL: SDL window creation failed: %s", SDL_GetError());
|
||||
return 0;
|
||||
}
|
||||
if (FindArgChar("-nomousegrab", 'm')) {
|
||||
SDL_SetWindowRelativeMouseMode(GSDLWindow, false);
|
||||
}
|
||||
|
||||
bool grabMouse = FindArgChar("-nomousegrab", 'm') == 0;
|
||||
SDL_SetWindowRelativeMouseMode(GSDLWindow, grabMouse);
|
||||
|
||||
SDL_SetWindowFullscreen(GSDLWindow, fullscreen);
|
||||
} else {
|
||||
SDL_SetWindowSize(GSDLWindow, winw, winh);
|
||||
|
||||
Reference in New Issue
Block a user