use getBackgroundColor

This commit is contained in:
David Rose 2002-07-12 18:17:20 +00:00
parent 591e054123
commit eb4812d06c
2 changed files with 2 additions and 2 deletions

View File

@ -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

View File

@ -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],