Mercurial > sdl-ios-xcode
comparison src/video/SDL_video.c @ 1672:8e754b82cecc SDL-1.3
Updated SDL_Surface code for software-only access, fixed some build errors
author | Sam Lantinga <slouken@libsdl.org> |
---|---|
date | Fri, 09 Jun 2006 07:06:12 +0000 |
parents | eef792d31de8 |
children | e136f3ffdc1b |
comparison
equal
deleted
inserted
replaced
1671:89f7510fe17a | 1672:8e754b82cecc |
---|---|
25 | 25 |
26 #include "SDL.h" | 26 #include "SDL.h" |
27 #include "SDL_sysvideo.h" | 27 #include "SDL_sysvideo.h" |
28 #include "SDL_blit.h" | 28 #include "SDL_blit.h" |
29 #include "SDL_pixels_c.h" | 29 #include "SDL_pixels_c.h" |
30 #include "SDL_cursor_c.h" | |
31 #include "../events/SDL_sysevents.h" | 30 #include "../events/SDL_sysevents.h" |
32 #include "../events/SDL_events_c.h" | 31 #include "../events/SDL_events_c.h" |
33 | 32 |
34 /* Available video drivers */ | 33 /* Available video drivers */ |
35 static VideoBootStrap *bootstrap[] = { | 34 static VideoBootStrap *bootstrap[] = { |
278 /* Start the event loop */ | 277 /* Start the event loop */ |
279 if (SDL_StartEventLoop(flags) < 0) { | 278 if (SDL_StartEventLoop(flags) < 0) { |
280 SDL_VideoQuit(); | 279 SDL_VideoQuit(); |
281 return -1; | 280 return -1; |
282 } | 281 } |
283 SDL_CursorInit(flags & SDL_INIT_EVENTTHREAD); | |
284 | 282 |
285 /* We're ready to go! */ | 283 /* We're ready to go! */ |
286 return 0; | 284 return 0; |
287 } | 285 } |
288 | 286 |
1555 } | 1553 } |
1556 if (display->windows) { | 1554 if (display->windows) { |
1557 SDL_free(display->windows); | 1555 SDL_free(display->windows); |
1558 display->windows = NULL; | 1556 display->windows = NULL; |
1559 } | 1557 } |
1560 SDL_free(display->info.vfmt); | |
1561 } | 1558 } |
1562 _this->VideoQuit(_this); | 1559 _this->VideoQuit(_this); |
1563 if (_this->displays) { | 1560 if (_this->displays) { |
1564 SDL_free(_this->displays); | 1561 SDL_free(_this->displays); |
1565 } | 1562 } |