mirror of
https://github.com/ocornut/imgui.git
synced 2025-04-08 06:53:11 +00:00
Fix uninitialized fields - MouseCursor set by first call to NewFrame()
This commit is contained in:
parent
c0699958ce
commit
a4cf50affe
1 changed files with 3 additions and 0 deletions
|
@ -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;
|
||||
|
|
Loading…
Add table
Reference in a new issue