Mercurial > sdl-ios-xcode
comparison src/video/SDL_cursor.c @ 1296:f418917e0b7a
Fixed crash:
#include <SDL.h>
int main(int argc, char** argv)
{
SDL_Init(SDL_INIT_EVERYTHING);
SDL_SetVideoMode(640, 480, 0, SDL_FULLSCREEN);
SDL_ShowCursor(SDL_DISABLE);
SDL_Delay(1000);
SDL_SetVideoMode(640, 480, 0, SDL_FULLSCREEN | SDL_OPENGL);
SDL_Quit();
printf("Everything okay\n");
}
author | Sam Lantinga <slouken@libsdl.org> |
---|---|
date | Mon, 30 Jan 2006 13:30:44 +0000 |
parents | 96ef83467667 |
children | c9b51268668f |
comparison
equal
deleted
inserted
replaced
1295:c3e36ac8a94c | 1296:f418917e0b7a |
---|---|
206 | 206 |
207 /* Draw the new mouse cursor */ | 207 /* Draw the new mouse cursor */ |
208 if ( SDL_cursor && (SDL_cursorstate&CURSOR_VISIBLE) ) { | 208 if ( SDL_cursor && (SDL_cursorstate&CURSOR_VISIBLE) ) { |
209 /* Use window manager cursor if possible */ | 209 /* Use window manager cursor if possible */ |
210 if ( SDL_cursor->wm_cursor && | 210 if ( SDL_cursor->wm_cursor && |
211 video->ShowWMCursor(this, SDL_cursor->wm_cursor) ) | 211 video->ShowWMCursor(this, SDL_cursor->wm_cursor) ) { |
212 SDL_cursorstate &= ~CURSOR_USINGSW; | 212 SDL_cursorstate &= ~CURSOR_USINGSW; |
213 else { | 213 } else { |
214 SDL_cursorstate |= CURSOR_USINGSW; | 214 SDL_cursorstate |= CURSOR_USINGSW; |
215 if ( video->ShowWMCursor ) { | 215 if ( video->ShowWMCursor ) { |
216 video->ShowWMCursor(this, NULL); | 216 video->ShowWMCursor(this, NULL); |
217 } | 217 } |
218 { int x, y; | 218 { int x, y; |