Begin: WIP consistent Begin/End behavior.

This commit is contained in:
omar
2020-07-20 23:20:16 +02:00
committed by ocornut
parent 8035405481
commit f4edca3e65
9 changed files with 596 additions and 495 deletions

View File

@ -104,7 +104,8 @@ struct FreeTypeTest
// Call to draw interface
void ShowFreetypeOptionsWindow()
{
ImGui::Begin("FreeType Options");
if (!ImGui::Begin("FreeType Options"))
return;
ImGui::ShowFontSelector("Fonts");
WantRebuild |= ImGui::RadioButton("FreeType", (int*)&BuildMode, FontBuildMode_FreeType);
ImGui::SameLine();