1 // -*- mode: C++; indent-tabs-mode: nil; c-basic-offset: 2; -*-
4 # include "../config.h"
5 #endif // HAVE_CONFIG_H
7 #include "pseudorendercontrol.hh"
9 #include "screeninfo.hh"
11 #include "rendertexture.hh"
16 #endif // HAVE_STDLIB_H
18 #include "../src/gettext.h"
19 #define _(str) gettext(str)
24 PseudoRenderControl::PseudoRenderControl(int screen)
25 : RenderControl(screen)
27 printf("Initializing PseudoColor RenderControl\n");
30 PseudoRenderControl::~PseudoRenderControl()
32 printf("Destroying PseudoColor RenderControl\n");
35 void PseudoRenderControl::drawBackground(Surface& sf,
36 const RenderTexture &texture) const
38 assert(_screen == sf._screen);
39 assert(_screen == texture.color().screen());
41 // in psuedo color, gradients aren't even worth while! just draw a solid!
42 //if (texture.gradient() == RenderTexture::Solid) {
43 drawSolidBackground(sf, texture);