From: Holger Schemel Date: Fri, 15 May 2015 15:08:28 +0000 (+0200) Subject: removed artifact from removed X11 support X-Git-Tag: 4.0.0.0-rc1~207 X-Git-Url: https://git.artsoft.org/?a=commitdiff_plain;h=f47abfa991814f09bfc5e388f284663bd23e2829;p=rocksndiamonds.git removed artifact from removed X11 support --- diff --git a/src/events.c b/src/events.c index 42277b02..c748bbcb 100644 --- a/src/events.c +++ b/src/events.c @@ -407,9 +407,6 @@ void HandleButtonEvent(ButtonEvent *event) void HandleMotionEvent(MotionEvent *event) { - if (!PointerInWindow(window)) - return; /* window and pointer are on different screens */ - if (button_status == MB_RELEASED && game_status != GAME_MODE_EDITOR) return; diff --git a/src/libgame/system.c b/src/libgame/system.c index 5c2025b6..f0d73e73 100644 --- a/src/libgame/system.c +++ b/src/libgame/system.c @@ -800,11 +800,6 @@ void KeyboardAutoRepeatOff(void) #endif } -boolean PointerInWindow(DrawWindow *window) -{ - return TRUE; -} - boolean SetVideoMode(boolean fullscreen) { return SDLSetVideoMode(&backbuffer, fullscreen); diff --git a/src/libgame/system.h b/src/libgame/system.h index ae32d93f..a6e9b9f3 100644 --- a/src/libgame/system.h +++ b/src/libgame/system.h @@ -1354,7 +1354,6 @@ Pixel GetPixelFromRGBcompact(Bitmap *, unsigned int); void KeyboardAutoRepeatOn(void); void KeyboardAutoRepeatOff(void); -boolean PointerInWindow(DrawWindow *); boolean SetVideoMode(boolean); boolean ChangeVideoModeIfNeeded(boolean); diff --git a/src/tools.c b/src/tools.c index 3ce90952..1676bc89 100644 --- a/src/tools.c +++ b/src/tools.c @@ -3301,9 +3301,6 @@ static int RequestHandleEvents(unsigned int req_state) { if (event.type == EVENT_MOTIONNOTIFY) { - if (!PointerInWindow(window)) - continue; /* window and pointer on different screens */ - if (!button_status) continue;