Fixed potential bug with fullscreen window style
Former-commit-id: 005102ed9fb53aba36a074deaa3245da3d479d06
This commit is contained in:
@@ -63,6 +63,7 @@ bool NzWindowImpl::Create(NzVideoMode mode, const NzString& title, nzUInt32 styl
|
|||||||
if (fullscreen)
|
if (fullscreen)
|
||||||
{
|
{
|
||||||
DEVMODE win32Mode;
|
DEVMODE win32Mode;
|
||||||
|
std::memset(&win32Mode, 0, sizeof(DEVMODE));
|
||||||
win32Mode.dmBitsPerPel = mode.bitsPerPixel;
|
win32Mode.dmBitsPerPel = mode.bitsPerPixel;
|
||||||
win32Mode.dmPelsHeight = mode.height;
|
win32Mode.dmPelsHeight = mode.height;
|
||||||
win32Mode.dmPelsWidth = mode.width;
|
win32Mode.dmPelsWidth = mode.width;
|
||||||
|
|||||||
Reference in New Issue
Block a user