Fixed potential bug with fullscreen window style

Former-commit-id: 005102ed9fb53aba36a074deaa3245da3d479d06
This commit is contained in:
Lynix 2012-12-28 21:33:50 +01:00
parent c4a5d32f28
commit 31a04abcaa
1 changed files with 1 additions and 0 deletions

View File

@ -63,6 +63,7 @@ bool NzWindowImpl::Create(NzVideoMode mode, const NzString& title, nzUInt32 styl
if (fullscreen)
{
DEVMODE win32Mode;
std::memset(&win32Mode, 0, sizeof(DEVMODE));
win32Mode.dmBitsPerPel = mode.bitsPerPixel;
win32Mode.dmPelsHeight = mode.height;
win32Mode.dmPelsWidth = mode.width;