Skip to content

Commit

Permalink
haiku: mouse_relative fix
Browse files Browse the repository at this point in the history
Partially fixes Bugzilla #4442.
  • Loading branch information
Peter Kosyh committed Nov 12, 2019
1 parent 79510b7 commit 33ae5e5
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions src/main/haiku/SDL_BApp.h
Expand Up @@ -230,9 +230,7 @@ class SDL_BApp : public BApplication {
win = GetSDLWindow(winID);

// Simple relative mode support for mouse.
if ((SDL_GetMouse()->relative_mode ||
(win->flags & SDL_WINDOW_INPUT_GRABBED)) &&
(win->flags & SDL_WINDOW_INPUT_FOCUS)) {
if (SDL_GetMouse()->relative_mode) {
int winWidth, winHeight, winPosX, winPosY;
SDL_GetWindowSize(win, &winWidth, &winHeight);
SDL_GetWindowPosition(win, &winPosX, &winPosY);
Expand Down

0 comments on commit 33ae5e5

Please sign in to comment.