Mercurial > sdl-ios-xcode
diff src/video/riscos/SDL_wimppoll.c @ 1208:d90b362628ea
From: "alan buckley" <alan_baa@hotmail.com>
Subject: Patch for RISC OS cursor palette handling in SDL
Date: Mon, 07 Nov 2005 09:14:15 -0800
The mouse cursor palette was not correctly
restored on RISC OS if the system was using
anything but the default mouse colours.
Additionally I've modifed the order the wait
for vsync is called as it should be after the
screen bank switching.
author | Sam Lantinga <slouken@libsdl.org> |
---|---|
date | Fri, 23 Dec 2005 09:40:15 +0000 |
parents | 974ba6ae0fa3 |
children | c9b51268668f |
line wrap: on
line diff
--- a/src/video/riscos/SDL_wimppoll.c Wed Dec 21 18:02:36 2005 +0000 +++ b/src/video/riscos/SDL_wimppoll.c Fri Dec 23 09:40:15 2005 +0000 @@ -71,6 +71,7 @@ /* Mouse cursor handling */ extern void WIMP_ReshowCursor(_THIS); +extern void WIMP_RestoreWimpCursor(); int hasFocus = 0; int mouseInWindow = 0; @@ -191,10 +192,7 @@ mouseInWindow = 0; //TODO: Lose buttons / dragging /* Reset to default pointer */ - regs.r[0] = 106; - regs.r[1] = 1; - regs.r[2] = 0; - _kernel_swi(OS_Byte, ®s, ®s); + WIMP_RestoreWimpCursor(); SDL_PrivateAppActive(0, SDL_APPMOUSEFOCUS); } else sysEvent = 1;