Mercurial > sdl-ios-xcode
comparison android-project/src/org/libsdl/app/SDLActivity.java @ 4988:f9af88a9c823
Whoops, need to pass that SDL format into native code
author | Sam Lantinga <slouken@libsdl.org> |
---|---|
date | Wed, 12 Jan 2011 16:35:03 -0800 |
parents | 660d3a432102 |
children | 58b6bb4a45e9 |
comparison
equal
deleted
inserted
replaced
4987:b68a0e03db02 | 4988:f9af88a9c823 |
---|---|
267 Log.v("SDL","pixel format RGB_888"); | 267 Log.v("SDL","pixel format RGB_888"); |
268 // Not sure this is right, maybe SDL_PIXELFORMAT_RGB24 instead? | 268 // Not sure this is right, maybe SDL_PIXELFORMAT_RGB24 instead? |
269 sdlFormat = 0x86161804; // SDL_PIXELFORMAT_RGB888 | 269 sdlFormat = 0x86161804; // SDL_PIXELFORMAT_RGB888 |
270 break; | 270 break; |
271 } | 271 } |
272 SDLActivity.onNativeResize(width, height, format); | 272 SDLActivity.onNativeResize(width, height, sdlFormat); |
273 | 273 |
274 // Now start up the C app thread | 274 // Now start up the C app thread |
275 if (mSDLThread == null) { | 275 if (mSDLThread == null) { |
276 mSDLThread = new Thread(new SDLMain(), "SDLThread"); | 276 mSDLThread = new Thread(new SDLMain(), "SDLThread"); |
277 mSDLThread.start(); | 277 mSDLThread.start(); |