comparison src/video/android/SDL_androidwindow.c @ 5254:7a963be087ef

Mostly fixed fullscreen mode on Mac OS X, and you can toggle it on and off. There are still some problems with the ConvertNSRect() calculations when switching video modes, which causes wierd window positioning issues, and the fullscreen window is still minimized on exit.
author Sam Lantinga <slouken@libsdl.org>
date Fri, 11 Feb 2011 00:25:44 -0800
parents c66b2a778b7e
children b530ef003506
comparison
equal deleted inserted replaced
5253:ff2564c24045 5254:7a963be087ef
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 */ 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 */ 45 window->flags |= SDL_WINDOW_FULLSCREEN; /* window is always fullscreen */
47 window->flags |= SDL_WINDOW_SHOWN; /* only one window on Android */ 46 window->flags |= SDL_WINDOW_SHOWN; /* only one window on Android */
48 window->flags |= SDL_WINDOW_INPUT_FOCUS; /* always has input focus */ 47 window->flags |= SDL_WINDOW_INPUT_FOCUS; /* always has input focus */
49 48
50 return 0; 49 return 0;