From eb4812d06c2e1ccdb0417c255616329d35922f3d Mon Sep 17 00:00:00 2001 From: David Rose Date: Fri, 12 Jul 2002 18:17:20 +0000 Subject: [PATCH] use getBackgroundColor --- direct/src/directtools/DirectUtil.py | 2 +- direct/src/tkpanels/DirectSessionPanel.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/direct/src/directtools/DirectUtil.py b/direct/src/directtools/DirectUtil.py index b4b14374ff..f60c2d2880 100644 --- a/direct/src/directtools/DirectUtil.py +++ b/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 diff --git a/direct/src/tkpanels/DirectSessionPanel.py b/direct/src/tkpanels/DirectSessionPanel.py index 57f0a5c1bd..8c5e53fb36 100644 --- a/direct/src/tkpanels/DirectSessionPanel.py +++ b/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],