Reenable automatic screen resizes on SDL_RESIZABLE
commitf19e10e6b21893d1a021ba40f3d1b1fb2762fd01
authorBartosz Taudul <wolf.pld@gmail.com>
Sun, 10 Aug 2008 19:38:47 +0000 (10 21:38 +0200)
committerBartosz Taudul <wolf.pld@gmail.com>
Sun, 10 Aug 2008 19:38:47 +0000 (10 21:38 +0200)
tree8e46094a09c68fe5df445b1f1ef7b0e7c7a486d0
parent5c94c594fc5c7cd48261facf05c681095f7c3c5e
Reenable automatic screen resizes on SDL_RESIZABLE

Reenable automatic screen resize events when creating SDL_RESIZABLE
video surface. Calling EpocSdlEnv::SetOrientation() was wrong, as it was
expecting upcoming HandleResourceChangeL() call, which isn't there due
to no real orientation change occuring and thus it was poisoning future
resize events. Just setting orientation is enough here.

Note that the behaviour is still faulty during external orientation
change inside the SDL_SetVideoMode() call, which can be reproduced by
creating fullscreen video surface, rotating the phone (accelerometer
required) and then creating resizable video surface.
src/video/symbian/SDL_epocvideo.cpp