X-Git-Url: https://git.dogcows.com/gitweb?a=blobdiff_plain;f=otk%2Fpseudorendercontrol.cc;h=813eb4d18b750a44627a8c3f344d90cc35e31899;hb=b8735c759a0a638a1169089c310baf9de6414597;hp=9759dc70938258671fa2d6d6a312767e4d6923ff;hpb=e6bfddf849009bef7bbb75be5147b4a533fa1ad2;p=chaz%2Fopenbox 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); } }