Cleanup - using ImRect more consistently for ImGui-side cliprect data

This commit is contained in:
ocornut
2015-08-06 08:23:05 -06:00
parent f1fb62fa6d
commit 88a00f77e9
2 changed files with 22 additions and 30 deletions

View File

@ -570,7 +570,7 @@ struct ImGuiWindow
ImGuiDrawContext DC; // Temporary per-window data, reset at the beginning of the frame
ImVector<ImGuiID> IDStack; // ID stack. ID are hashes seeded with the value at the top of the stack
ImVec4 ClipRect; // = DrawList->clip_rect_stack.back(). Scissoring / clipping rectangle. x1, y1, x2, y2.
ImRect ClipRect; // = DrawList->clip_rect_stack.back(). Scissoring / clipping rectangle. x1, y1, x2, y2.
ImRect ClippedWindowRect; // = ClipRect just after setup in Begin()
int LastFrameDrawn;
float ItemWidthDefault;