Mercurial > sdl-ios-xcode
comparison src/video/android/SDL_androidwindow.c @ 5227:c66b2a778b7e
Try to create an OpenGL ES 2.0 context on Android and successfully fall back to OpenGL ES 1.1 if that fails.
author | Sam Lantinga <slouken@libsdl.org> |
---|---|
date | Mon, 07 Feb 2011 17:44:07 -0800 |
parents | 77df56570442 |
children | 7a963be087ef |
comparison
equal
deleted
inserted
replaced
5226:2ee8112bfc6b | 5227:c66b2a778b7e |
---|---|
39 window->x = 0; | 39 window->x = 0; |
40 window->y = 0; | 40 window->y = 0; |
41 window->w = Android_ScreenWidth; | 41 window->w = Android_ScreenWidth; |
42 window->h = Android_ScreenHeight; | 42 window->h = Android_ScreenHeight; |
43 | 43 |
44 window->flags &= ~SDL_WINDOW_RESIZABLE; /* window is NEVER resizeable */ | |
45 window->flags |= SDL_WINDOW_OPENGL; /* window is always OpenGL */ | |
46 window->flags |= SDL_WINDOW_FULLSCREEN; /* window is always fullscreen */ | |
47 window->flags |= SDL_WINDOW_SHOWN; /* only one window on Android */ | |
48 window->flags |= SDL_WINDOW_INPUT_FOCUS; /* always has input focus */ | |
49 | |
44 return 0; | 50 return 0; |
45 } | 51 } |
46 | 52 |
47 void | 53 void |
48 Android_SetWindowTitle(_THIS, SDL_Window * window) | 54 Android_SetWindowTitle(_THIS, SDL_Window * window) |