Skip to content

Commit

Permalink
Merge pull request godotengine#45298 from marstaik/fix_cursor
Browse files Browse the repository at this point in the history
BUGFIX: Fix uninitialized cursor_shape on windows display server
  • Loading branch information
akien-mga authored Jan 19, 2021
2 parents 7fc9d4c + 2a2de2f commit 7dea83c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion platform/windows/display_server_windows.h
Original file line number Diff line number Diff line change
Expand Up @@ -417,7 +417,7 @@ class DisplayServerWindows : public DisplayServer {
WNDCLASSEXW wc;

HCURSOR cursors[CURSOR_MAX] = { nullptr };
CursorShape cursor_shape;
CursorShape cursor_shape = CursorShape::CURSOR_ARROW;
Map<CursorShape, Vector<Variant>> cursors_cache;

void _drag_event(WindowID p_window, float p_x, float p_y, int idx);
Expand Down

0 comments on commit 7dea83c

Please sign in to comment.