Răsfoiți Sursa

Fixed flag ImGuiWindowFlags_AlwaysAutoResize been passed as alpha argument (#1251)

Stanislav 8 ani în urmă
părinte
comite
f9b5c86d10
1 a modificat fișierele cu 1 adăugiri și 1 ștergeri
  1. 1 1
      examples/common/example-glue.cpp

+ 1 - 1
examples/common/example-glue.cpp

@@ -19,9 +19,9 @@ void showExampleDialog(entry::AppI* _app, const char* _errorText)
 		  ImVec2(10.0f, 50.0f)
 		  ImVec2(10.0f, 50.0f)
 		, ImGuiSetCond_FirstUseEver
 		, ImGuiSetCond_FirstUseEver
 		);
 		);
+	ImGui::SetNextWindowSize(ImVec2(256.0f, 200.0f));
 	ImGui::Begin(temp
 	ImGui::Begin(temp
 		, NULL
 		, NULL
-		, ImVec2(256.0f, 200.0f)
 		, ImGuiWindowFlags_AlwaysAutoResize
 		, ImGuiWindowFlags_AlwaysAutoResize
 		);
 		);