X-Git-Url: https://git.dogcows.com/gitweb?a=blobdiff_plain;f=otk%2Fpseudorendercontrol.cc;h=e239a4f040172a996d8b9b775de69e0fb72118fc;hb=4eaa65510b26d342c5419e6081bcecaa0ec8aa24;hp=9759dc70938258671fa2d6d6a312767e4d6923ff;hpb=e6bfddf849009bef7bbb75be5147b4a533fa1ad2;p=chaz%2Fopenbox diff --git a/otk/pseudorendercontrol.cc b/otk/pseudorendercontrol.cc index 9759dc70..e239a4f0 100644 --- a/otk/pseudorendercontrol.cc +++ b/otk/pseudorendercontrol.cc @@ -1,8 +1,6 @@ // -*- mode: C++; indent-tabs-mode: nil; c-basic-offset: 2; -*- -#ifdef HAVE_CONFIG_H -# include "../config.h" -#endif // HAVE_CONFIG_H +#include "config.h" #include "pseudorendercontrol.hh" #include "display.hh" @@ -24,22 +22,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 +36,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); } }