From 4c1dcebe6c1f7a14df87ef96a1529a4137cd9cfb Mon Sep 17 00:00:00 2001 From: Cameron Cawley Date: Fri, 17 Aug 2018 20:52:34 +0100 Subject: [PATCH] riscos: Restore mouse palette when exiting while the mouse is in focus --- src/video/riscos/SDL_riscosmouse_c.h | 1 + src/video/riscos/SDL_riscostask.c | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/src/video/riscos/SDL_riscosmouse_c.h b/src/video/riscos/SDL_riscosmouse_c.h index 9019cb43c..86d138771 100644 --- a/src/video/riscos/SDL_riscosmouse_c.h +++ b/src/video/riscos/SDL_riscosmouse_c.h @@ -42,3 +42,4 @@ void FULLSCREEN_WarpWMCursor(_THIS, Uint16 x, Uint16 y); int WIMP_ShowWMCursor(_THIS, WMcursor *cursor); void WIMP_WarpWMCursor(_THIS, Uint16 x, Uint16 y); +void WIMP_RestoreWimpCursor(); diff --git a/src/video/riscos/SDL_riscostask.c b/src/video/riscos/SDL_riscostask.c index 3674b6ac0..97b721dda 100644 --- a/src/video/riscos/SDL_riscostask.c +++ b/src/video/riscos/SDL_riscostask.c @@ -136,7 +136,7 @@ void RISCOS_ExitTask() { /* Ensure cursor is put back to standard pointer shape if we have been running in a window */ - _kernel_osbyte(106,1,0); + WIMP_RestoreWimpCursor(); } /* Ensure we end up back in the wimp */