浏览代码

Examples: changed default background color.

ocornut 10 年之前
父节点
当前提交
381c7428c1

+ 1 - 1
examples/directx11_example/main.cpp

@@ -550,7 +550,7 @@ int WINAPI wWinMain(HINSTANCE hInst, HINSTANCE, LPWSTR, int)
 
     bool show_test_window = true;
     bool show_another_window = false;
-    ImVec4 clear_col(0.8f, 0.6f, 0.6f, 1.0f);
+    ImVec4 clear_col = ImColor(114, 144, 154);
 
     // Enter the message loop
     MSG msg;

+ 1 - 1
examples/directx9_example/main.cpp

@@ -310,7 +310,7 @@ int WINAPI wWinMain(HINSTANCE hInst, HINSTANCE, LPWSTR, int)
 
     bool show_test_window = true;
     bool show_another_window = false;
-    ImVec4 clear_col(0.8f, 0.6f, 0.6f, 1.0f);
+    ImVec4 clear_col = ImColor(114, 144, 154);
 
     // Enter the message loop
     MSG msg;

+ 1 - 1
examples/opengl3_example/main.cpp

@@ -327,7 +327,7 @@ int main(int argc, char** argv)
 
     bool show_test_window = true;
     bool show_another_window = false;
-    ImVec4 clear_col(0.8f, 0.6f, 0.6f, 1.0f);
+    ImVec4 clear_col = ImColor(114, 144, 154);
 
     while (!glfwWindowShouldClose(window))
     {

+ 1 - 1
examples/opengl_example/main.cpp

@@ -237,7 +237,7 @@ int main(int argc, char** argv)
 
     bool show_test_window = true;
     bool show_another_window = false;
-    ImVec4 clear_col(0.8f, 0.6f, 0.6f, 1.0f);
+    ImVec4 clear_col = ImColor(114, 144, 154);
 
     while (!glfwWindowShouldClose(window))
     {