summaryrefslogtreecommitdiff
path: root/sokol_app.h
diff options
context:
space:
mode:
authorMartin Cohen <m@coh.io>2019-09-10 20:30:21 +0200
committerGitHub <noreply@github.com>2019-09-10 20:30:21 +0200
commitc439dde9d58a556eac7f59876195695900ac46f2 (patch)
tree3d778bb040707c799c3860f611ede1e96468c23c /sokol_app.h
parent283dc841fb512458fa14cb458404f7ab38315283 (diff)
C++ compatibility
Diffstat (limited to 'sokol_app.h')
-rw-r--r--sokol_app.h4
1 files changed, 3 insertions, 1 deletions
diff --git a/sokol_app.h b/sokol_app.h
index 9024d950..2571dbba 100644
--- a/sokol_app.h
+++ b/sokol_app.h
@@ -3866,7 +3866,9 @@ _SOKOL_PRIVATE void _sapp_win32_show_mouse(bool shown) {
}
_SOKOL_PRIVATE bool _sapp_win32_mouse_shown(void) {
- CURSORINFO cursor_info = { .cbSize = sizeof(CURSORINFO) };
+ CURSORINFO cursor_info;
+ memset(&cursor_info, 0, sizeof(CURSORINFO));
+ cursor_info.cbSize = sizeof(CURSORINFO);
GetCursorInfo(&cursor_info);
return (cursor_info.flags & CURSOR_SHOWING) != 0;
}