Fix uninitialized fields - MouseCursor set by first call to NewFrame()

This commit is contained in:
ocornut 2015-04-01 15:08:42 +01:00
parent c0699958ce
commit a4cf50affe

View File

@ -1012,6 +1012,7 @@ struct ImGuiDrawContext
LastItemID = 0;
LastItemRect = ImRect(0.0f,0.0f,0.0f,0.0f);
LastItemHoveredAndUsable = LastItemHoveredRect = false;
ColorEditMode = ImGuiColorEditMode_RGB;
StateStorage = NULL;
ColumnsStartX = 0.0f;
@ -1192,6 +1193,8 @@ struct ImGuiState
memset(Tooltip, 0, sizeof(Tooltip));
PrivateClipboard = NULL;
MouseCursor = ImGuiMouseCursor_Arrow;
LogEnabled = false;
LogFile = NULL;
LogClipboard = NULL;