mirror of
https://port.numenaute.org/aleajactaest/khanat-opennel-code.git
synced 2024-12-21 00:18:43 +00:00
Initialize struct member before use...
--HG-- branch : develop
This commit is contained in:
parent
938c36027d
commit
c6df57adf1
1 changed files with 3 additions and 0 deletions
|
@ -1851,6 +1851,9 @@ bool CDriverGL::setMode(const GfxMode& mode)
|
||||||
#if defined(NL_OS_WINDOWS)
|
#if defined(NL_OS_WINDOWS)
|
||||||
// save relative cursor
|
// save relative cursor
|
||||||
POINT cursorPos;
|
POINT cursorPos;
|
||||||
|
cursorPos.x = 0;
|
||||||
|
cursorPos.y = 0;
|
||||||
|
|
||||||
BOOL cursorPosOk = isSystemCursorInClientArea()
|
BOOL cursorPosOk = isSystemCursorInClientArea()
|
||||||
&& GetCursorPos(&cursorPos)
|
&& GetCursorPos(&cursorPos)
|
||||||
&& ScreenToClient(_win, &cursorPos);
|
&& ScreenToClient(_win, &cursorPos);
|
||||||
|
|
Loading…
Reference in a new issue