Mercurial > sdl-ios-xcode
comparison 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 |
comparison
equal
deleted
inserted
replaced
1207:c9ec00d3e8bc | 1208:d90b362628ea |
---|---|
69 extern int riscos_using_threads; | 69 extern int riscos_using_threads; |
70 #endif | 70 #endif |
71 | 71 |
72 /* Mouse cursor handling */ | 72 /* Mouse cursor handling */ |
73 extern void WIMP_ReshowCursor(_THIS); | 73 extern void WIMP_ReshowCursor(_THIS); |
74 extern void WIMP_RestoreWimpCursor(); | |
74 | 75 |
75 int hasFocus = 0; | 76 int hasFocus = 0; |
76 int mouseInWindow = 0; | 77 int mouseInWindow = 0; |
77 | 78 |
78 /* Flag to ensure window is correct size after a mode change */ | 79 /* Flag to ensure window is correct size after a mode change */ |
189 if (message[0] == sdlWindow) | 190 if (message[0] == sdlWindow) |
190 { | 191 { |
191 mouseInWindow = 0; | 192 mouseInWindow = 0; |
192 //TODO: Lose buttons / dragging | 193 //TODO: Lose buttons / dragging |
193 /* Reset to default pointer */ | 194 /* Reset to default pointer */ |
194 regs.r[0] = 106; | 195 WIMP_RestoreWimpCursor(); |
195 regs.r[1] = 1; | |
196 regs.r[2] = 0; | |
197 _kernel_swi(OS_Byte, ®s, ®s); | |
198 SDL_PrivateAppActive(0, SDL_APPMOUSEFOCUS); | 196 SDL_PrivateAppActive(0, SDL_APPMOUSEFOCUS); |
199 } else | 197 } else |
200 sysEvent = 1; | 198 sysEvent = 1; |
201 break; | 199 break; |
202 | 200 |