]>
Dogcows Code - chaz/openbox/blob - otk/pseudorendercontrol.cc
1 // -*- mode: C++; indent-tabs-mode: nil; c-basic-offset: 2; -*-
5 #include "pseudorendercontrol.hh"
7 #include "screeninfo.hh"
9 #include "rendertexture.hh"
14 #endif // HAVE_STDLIB_H
16 #include "../src/gettext.h"
17 #define _(str) gettext(str)
22 PseudoRenderControl::PseudoRenderControl(int screen
)
23 : RenderControl(screen
)
25 printf("Initializing PseudoColor RenderControl\n");
28 PseudoRenderControl::~PseudoRenderControl()
30 printf("Destroying PseudoColor RenderControl\n");
33 void PseudoRenderControl::drawBackground(Surface
& sf
,
34 const RenderTexture
&texture
) const
36 assert(_screen
== sf
._screen
);
37 assert(_screen
== texture
.color().screen());
39 // in psuedo color, gradients aren't even worth while! just draw a solid!
40 //if (texture.gradient() == RenderTexture::Solid) {
41 drawSolidBackground(sf
, texture
);
This page took 0.035142 seconds and 4 git commands to generate.