// -*- mode: C++; indent-tabs-mode: nil; c-basic-offset: 2; -*- #include "config.h" #include "pseudorendercontrol.hh" #include "display.hh" #include "screeninfo.hh" #include "surface.hh" #include "rendertexture.hh" extern "C" { #ifdef HAVE_STDLIB_H # include #endif // HAVE_STDLIB_H #include "../src/gettext.h" #define _(str) gettext(str) } namespace otk { PseudoRenderControl::PseudoRenderControl(int screen) : RenderControl(screen) { printf("Initializing PseudoColor RenderControl\n"); } PseudoRenderControl::~PseudoRenderControl() { printf("Destroying PseudoColor RenderControl\n"); } void PseudoRenderControl::drawBackground(Surface& sf, const RenderTexture &texture) const { assert(_screen == sf._screen); assert(_screen == texture.color().screen()); // in psuedo color, gradients aren't even worth while! just draw a solid! //if (texture.gradient() == RenderTexture::Solid) { drawSolidBackground(sf, texture); } }