Skip to content

Commit

Permalink
Made IMGUI_DISABLE_OBSOLETE_FUNCTIONS exceptionally not affect the la…
Browse files Browse the repository at this point in the history
…yout of ImGuiIO. (#1695)
  • Loading branch information
ocornut committed May 4, 2018
1 parent ef05141 commit dbe16b6
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions imgui.h
Original file line number Diff line number Diff line change
Expand Up @@ -1043,9 +1043,12 @@ struct ImGuiIO
void* ImeWindowHandle; // (Windows) Set this to your HWND to get automatic IME cursor positioning.

#ifndef IMGUI_DISABLE_OBSOLETE_FUNCTIONS
// [OBSOLETE] Rendering function, will be automatically called in Render(). Please call your rendering function yourself now! You can obtain the ImDrawData* by calling ImGui::GetDrawData() after Render().
// See example applications if you are unsure of how to implement this.
// [OBSOLETE] Rendering function, will be automatically called in Render(). Please call your rendering function yourself now!
// You can obtain the ImDrawData* by calling ImGui::GetDrawData() after Render(). See example applications if you are unsure of how to implement this.
void (*RenderDrawListsFn)(ImDrawData* data);
#else
// This is only here to keep ImGuiIO the same size, so that IMGUI_DISABLE_OBSOLETE_FUNCTIONS can exceptionally be used outside of imconfig.h.
void* RenderDrawListsFnDummy;
#endif

//------------------------------------------------------------------
Expand Down

0 comments on commit dbe16b6

Please # to comment.