mirror of
https://github.com/Drezil/imgui.git
synced 2025-03-31 16:32:45 +00:00
Fix uninitialized fields - MouseCursor set by first call to NewFrame()
This commit is contained in:
parent
c0699958ce
commit
a4cf50affe
@ -1012,6 +1012,7 @@ struct ImGuiDrawContext
|
|||||||
LastItemID = 0;
|
LastItemID = 0;
|
||||||
LastItemRect = ImRect(0.0f,0.0f,0.0f,0.0f);
|
LastItemRect = ImRect(0.0f,0.0f,0.0f,0.0f);
|
||||||
LastItemHoveredAndUsable = LastItemHoveredRect = false;
|
LastItemHoveredAndUsable = LastItemHoveredRect = false;
|
||||||
|
ColorEditMode = ImGuiColorEditMode_RGB;
|
||||||
StateStorage = NULL;
|
StateStorage = NULL;
|
||||||
|
|
||||||
ColumnsStartX = 0.0f;
|
ColumnsStartX = 0.0f;
|
||||||
@ -1192,6 +1193,8 @@ struct ImGuiState
|
|||||||
memset(Tooltip, 0, sizeof(Tooltip));
|
memset(Tooltip, 0, sizeof(Tooltip));
|
||||||
PrivateClipboard = NULL;
|
PrivateClipboard = NULL;
|
||||||
|
|
||||||
|
MouseCursor = ImGuiMouseCursor_Arrow;
|
||||||
|
|
||||||
LogEnabled = false;
|
LogEnabled = false;
|
||||||
LogFile = NULL;
|
LogFile = NULL;
|
||||||
LogClipboard = NULL;
|
LogClipboard = NULL;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user