Mercurial > sdl-ios-xcode
diff test/common.c @ 1933:7ee5297340f7
Implemented Cocoa window support
author | Sam Lantinga <slouken@libsdl.org> |
---|---|
date | Mon, 24 Jul 2006 05:03:02 +0000 |
parents | 69217fdd2c0a |
children | c7803e4c21d3 |
line wrap: on
line diff
--- a/test/common.c Sun Jul 23 09:16:14 2006 +0000 +++ b/test/common.c Mon Jul 24 05:03:02 2006 +0000 @@ -660,8 +660,9 @@ return SDL_FALSE; } - if (state->renderdriver - || !(state->window_flags & SDL_WINDOW_OPENGL)) { + if (!state->skip_renderer + && (state->renderdriver + || !(state->window_flags & SDL_WINDOW_OPENGL))) { m = -1; if (state->renderdriver) { SDL_RendererInfo info; @@ -784,6 +785,9 @@ fprintf(stderr, "Window %d lost keyboard focus", event->window.windowID); break; + case SDL_WINDOWEVENT_CLOSE: + fprintf(stderr, "Window %d closed", event->window.windowID); + break; default: fprintf(stderr, "Window %d got unknown event %d", event->window.windowID, event->window.event);