From afb8a28120b21569934202968283e65a173c3bd8 Mon Sep 17 00:00:00 2001 From: Dana Jansens Date: Mon, 3 Feb 2003 07:41:25 +0000 Subject: support pseudocolor and greyscale displays by, using solid colors instead of gradients --- otk/pseudorendercontrol.cc | 18 +++--------------- 1 file changed, 3 insertions(+), 15 deletions(-) (limited to 'otk/pseudorendercontrol.cc') diff --git a/otk/pseudorendercontrol.cc b/otk/pseudorendercontrol.cc index 9759dc70..813eb4d1 100644 --- a/otk/pseudorendercontrol.cc +++ b/otk/pseudorendercontrol.cc @@ -24,22 +24,12 @@ namespace otk { PseudoRenderControl::PseudoRenderControl(int screen) : RenderControl(screen) { - const ScreenInfo *info = display->screenInfo(_screen); - printf("Initializing PseudoColor RenderControl\n"); - } PseudoRenderControl::~PseudoRenderControl() { printf("Destroying PseudoColor RenderControl\n"); - - -} - -void PseudoRenderControl::drawGradientBackground( - Surface &sf, const RenderTexture &texture) const -{ } void PseudoRenderControl::drawBackground(Surface& sf, @@ -48,11 +38,9 @@ void PseudoRenderControl::drawBackground(Surface& sf, assert(_screen == sf._screen); assert(_screen == texture.color().screen()); - if (texture.gradient() == RenderTexture::Solid) { - drawSolidBackground(sf, texture); - } else { - drawGradientBackground(sf, texture); - } + // in psuedo color, gradients aren't even worth while! just draw a solid! + //if (texture.gradient() == RenderTexture::Solid) { + drawSolidBackground(sf, texture); } } -- cgit v1.2.3