comparison src/video/android/SDL_androidvideo.c @ 4960:0ab2492f2e17

Fixed 2D video on Android There was a dummy renderer left in there which was overriding the OpenGL ES renderer.
author Sam Lantinga <slouken@libsdl.org>
date Tue, 04 Jan 2011 20:36:39 -0800
parents f2c2a33a1a38
children 604077962776
comparison
equal deleted inserted replaced
4959:16fec41375a6 4960:0ab2492f2e17
30 #include "../SDL_pixels_c.h" 30 #include "../SDL_pixels_c.h"
31 #include "../../events/SDL_events_c.h" 31 #include "../../events/SDL_events_c.h"
32 32
33 #include "SDL_androidvideo.h" 33 #include "SDL_androidvideo.h"
34 #include "SDL_androidevents.h" 34 #include "SDL_androidevents.h"
35 #include "SDL_androidrender.h"
36 35
37 #define ANDROID_VID_DRIVER_NAME "Android" 36 #define ANDROID_VID_DRIVER_NAME "Android"
38 37
39 /* Initialization/Query functions */ 38 /* Initialization/Query functions */
40 static int Android_VideoInit(_THIS); 39 static int Android_VideoInit(_THIS);
131 mode.refresh_rate = 0; 130 mode.refresh_rate = 0;
132 mode.driverdata = NULL; 131 mode.driverdata = NULL;
133 if (SDL_AddBasicVideoDisplay(&mode) < 0) { 132 if (SDL_AddBasicVideoDisplay(&mode) < 0) {
134 return -1; 133 return -1;
135 } 134 }
136 SDL_AddRenderDriver(&_this->displays[0], &Android_RenderDriver);
137 135
138 SDL_zero(mode); 136 SDL_zero(mode);
139 SDL_AddDisplayMode(&_this->displays[0], &mode); 137 SDL_AddDisplayMode(&_this->displays[0], &mode);
140 138
141 Android_InitEvents(); 139 Android_InitEvents();