riscos: Restore mouse palette when exiting while the mouse is in focus SDL-1.2
authorCameron Cawley <ccawley2011@gmail.com>
Fri, 17 Aug 2018 20:52:34 +0100
branchSDL-1.2
changeset 127728546f12c2834
parent 12749 af9681b14e85
child 12773 496c64c1d9c3
riscos: Restore mouse palette when exiting while the mouse is in focus
src/video/riscos/SDL_riscosmouse_c.h
src/video/riscos/SDL_riscostask.c
     1.1 --- a/src/video/riscos/SDL_riscosmouse_c.h	Wed May 22 23:16:54 2019 +0200
     1.2 +++ b/src/video/riscos/SDL_riscosmouse_c.h	Fri Aug 17 20:52:34 2018 +0100
     1.3 @@ -42,3 +42,4 @@
     1.4  int WIMP_ShowWMCursor(_THIS, WMcursor *cursor);
     1.5  void WIMP_WarpWMCursor(_THIS, Uint16 x, Uint16 y);
     1.6  
     1.7 +void WIMP_RestoreWimpCursor();
     2.1 --- a/src/video/riscos/SDL_riscostask.c	Wed May 22 23:16:54 2019 +0200
     2.2 +++ b/src/video/riscos/SDL_riscostask.c	Fri Aug 17 20:52:34 2018 +0100
     2.3 @@ -136,7 +136,7 @@
     2.4      {
     2.5         /* Ensure cursor is put back to standard pointer shape if
     2.6            we have been running in a window */
     2.7 -       _kernel_osbyte(106,1,0);
     2.8 +       WIMP_RestoreWimpCursor();
     2.9      }
    2.10  
    2.11  	/* Ensure we end up back in the wimp */