Init _oldVideoMode, _videoMode and _transactioDetails properly.

svn-id: r35066
This commit is contained in:
Johannes Schickel 2008-11-14 23:10:14 +00:00
parent bfc9b972f5
commit a68bb32a97

View File

@ -116,8 +116,9 @@ void OSystem_SDL::initBackend() {
// Enable unicode support if possible
SDL_EnableUNICODE(1);
_oldVideoMode.setup = false;
_videoMode.setup = false;
memset(&_oldVideoMode, 0, sizeof(_oldVideoMode));
memset(&_videoMode, 0, sizeof(_videoMode));
memset(&_transactionDetails, 0, sizeof(_transactionDetails));
_cksumValid = false;
#if !defined(_WIN32_WCE) && !defined(__SYMBIAN32__) && !defined(DISABLE_SCALERS)