Mercurial > sdl-ios-xcode
comparison src/video/android/SDL_androidvideo.c @ 4963:604077962776
Fixed screen texture format on Android
I think this also fixes some of the red/blue channel swap bugs reported on iPhone.
author | Sam Lantinga <slouken@libsdl.org> |
---|---|
date | Wed, 05 Jan 2011 00:09:19 -0800 |
parents | 0ab2492f2e17 |
children | d9fdff945ec9 |
comparison
equal
deleted
inserted
replaced
4962:730b234ba9ec | 4963:604077962776 |
---|---|
122 Android_VideoInit(_THIS) | 122 Android_VideoInit(_THIS) |
123 { | 123 { |
124 SDL_DisplayMode mode; | 124 SDL_DisplayMode mode; |
125 | 125 |
126 /* Use a fake 32-bpp desktop mode */ | 126 /* Use a fake 32-bpp desktop mode */ |
127 mode.format = SDL_PIXELFORMAT_RGB888; | 127 mode.format = SDL_PIXELFORMAT_BGR888; |
128 mode.w = iScreenWidth; | 128 mode.w = iScreenWidth; |
129 mode.h = iScreenHeight; | 129 mode.h = iScreenHeight; |
130 mode.refresh_rate = 0; | 130 mode.refresh_rate = 0; |
131 mode.driverdata = NULL; | 131 mode.driverdata = NULL; |
132 if (SDL_AddBasicVideoDisplay(&mode) < 0) { | 132 if (SDL_AddBasicVideoDisplay(&mode) < 0) { |