Browse Source

use getBackgroundColor

David Rose 23 years ago
parent
commit
eb4812d06c
2 changed files with 2 additions and 2 deletions
  1. 1 1
      direct/src/directtools/DirectUtil.py
  2. 1 1
      direct/src/tkpanels/DirectSessionPanel.py

+ 1 - 1
direct/src/directtools/DirectUtil.py

@@ -50,7 +50,7 @@ def lerpBackgroundColor(r,g,b,duration):
     t = taskMgr.add(lerpColor, 'lerpBackgroundColor')
     t.time = 0.0
     t.duration = duration
-    t.sc = base.win.getGsg().getColorClearValue()
+    t.sc = base.getBackgroundColor()
     t.ec = VBase4(r,g,b,1)
 
 # Set direct drawing style for an object

+ 1 - 1
direct/src/tkpanels/DirectSessionPanel.py

@@ -886,7 +886,7 @@ class DirectSessionPanel(AppShell):
             self.updateGridInfo()
             
     def updateEnvironmentInfo(self):
-        bkgrdColor = base.win.getGsg().getColorClearValue() * 255.0
+        bkgrdColor = base.getBackgroundColor() * 255.0
         self.backgroundColor.set([bkgrdColor[0],
                                   bkgrdColor[1],
                                   bkgrdColor[2],