Fixed potential bug with fullscreen window style
Former-commit-id: 005102ed9fb53aba36a074deaa3245da3d479d06
This commit is contained in:
parent
c4a5d32f28
commit
31a04abcaa
|
|
@ -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;
|
||||
|
|
|
|||
Loading…
Reference in New Issue