Переглянути джерело

BUGFIX: Fix unintialized cursor_shape on windows display server

Marios Staikopoulos 4 роки тому
батько
коміт
2a2de2f684
1 змінених файлів з 1 додано та 1 видалено
  1. 1 1
      platform/windows/display_server_windows.h

+ 1 - 1
platform/windows/display_server_windows.h

@@ -417,7 +417,7 @@ private:
 	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);