Skip to content

Commit

Permalink
riscos: Don't reset mouse focus when recreating the window
Browse files Browse the repository at this point in the history
  • Loading branch information
ccawley2011 committed Aug 17, 2018
1 parent eb1e750 commit 45f4df7
Showing 1 changed file with 0 additions and 3 deletions.
3 changes: 0 additions & 3 deletions src/video/riscos/SDL_wimpvideo.c
Expand Up @@ -72,7 +72,6 @@ extern int FULLSCREEN_SetMode(int width, int height, int bpp);
extern int RISCOS_ToggleFullScreen(_THIS, int fullscreen);

extern int riscos_backbuffer;
extern int mouseInWindow;
extern int riscos_closeaction;

/* Following needed to ensure window is shown immediately */
Expand Down Expand Up @@ -253,8 +252,6 @@ unsigned int WIMP_SetupWindow(_THIS, SDL_Surface *surface)
int y = (this->hidden->screen_height - surface->h) / 2;
int xeig = this->hidden->xeig;
int yeig = this->hidden->yeig;

mouseInWindow = 0;

/* Always delete the window and recreate on a change */
if (this->hidden->window_handle) WIMP_DeleteWindow(this);
Expand Down

0 comments on commit 45f4df7

Please sign in to comment.