Internals: Popup: Explicitely setting up ImGuiPopupRef reduces confusion.

This commit is contained in:
omar
2018-01-07 15:40:46 +01:00
parent e09852fc49
commit 369189b675
2 changed files with 7 additions and 5 deletions

View File

@ -403,8 +403,6 @@ struct ImGuiPopupRef
ImGuiID ParentMenuSet; // Set on OpenPopup()
ImVec2 PopupPosOnOpen; // Preferred popup position (typically == MousePosOnOpen when using mouse)
ImVec2 MousePosOnOpen; // Copy of mouse position at the time of opening popup
ImGuiPopupRef(ImGuiID id, ImGuiWindow* parent_window, ImGuiID parent_menu_set, const ImVec2& popup_pos, const ImVec2& mouse_pos) { PopupId = id; Window = NULL; ParentWindow = parent_window; ParentMenuSet = parent_menu_set; PopupPosOnOpen = popup_pos; MousePosOnOpen = mouse_pos; }
};
struct ImGuiColumnData