Mercurial > sdl-ios-xcode
diff src/video/photon/SDL_photon.c @ 3387:05499ec8c022
Initial support for fullscreen application modes.
author | Mike Gorchak <lestat@i.com.ua> |
---|---|
date | Mon, 12 Oct 2009 19:47:01 +0000 |
parents | fff074de9675 |
children | f96615051c8c |
line wrap: on
line diff
--- a/src/video/photon/SDL_photon.c Mon Oct 12 11:45:01 2009 +0000 +++ b/src/video/photon/SDL_photon.c Mon Oct 12 19:47:01 2009 +0000 @@ -2456,6 +2456,35 @@ break; case Ph_EV_INFO: { + switch (event->subtype) + { + case Ph_OFFSCREEN_INVALID: + { + uint32_t* type; + + type = PhGetData(event); + switch (*type) + { + case Pg_VIDEO_MODE_SWITCHED: + case Pg_ENTERED_DIRECT: + case Pg_EXITED_DIRECT: + case Pg_DRIVER_STARTED: + { + /* TODO: */ + /* We must tell the renderer, that it have */ + /* to recreate all surfaces */ + } + break; + default: + { + } + break; + } + } + break; + default: + break; + } } break; case Ph_EV_KEY: