[Bf-blender-cvs] [e0499387ca0] master: GHOST: Init New Windows with a closer theme color

Aaron Carlisle noreply at git.blender.org
Sat Feb 15 18:44:57 CET 2020


Commit: e0499387ca0a641a92f3ad22bcdfc356d4828f12
Author: Aaron Carlisle
Date:   Sat Feb 15 12:44:52 2020 -0500
Branches: master
https://developer.blender.org/rBe0499387ca0a641a92f3ad22bcdfc356d4828f12

GHOST: Init New Windows with a closer theme color

The user theme is loaded after window creation so we should create the 
window with a color that at least matches the default theme.

Differential Revision: https://developer.blender.org/D6858

===================================================================

M	intern/ghost/intern/GHOST_Context.cpp

===================================================================

diff --git a/intern/ghost/intern/GHOST_Context.cpp b/intern/ghost/intern/GHOST_Context.cpp
index 0d167209909..f8a75370527 100644
--- a/intern/ghost/intern/GHOST_Context.cpp
+++ b/intern/ghost/intern/GHOST_Context.cpp
@@ -145,7 +145,7 @@ void GHOST_Context::initContextGLEW()
 
 void GHOST_Context::initClearGL()
 {
-  glClearColor(0.447, 0.447, 0.447, 0.000);
+  glClearColor(0.294, 0.294, 0.294, 0.000);
   glClear(GL_COLOR_BUFFER_BIT);
   glClearColor(0.000, 0.000, 0.000, 0.000);
 }



More information about the Bf-blender-cvs mailing list