]>
Dogcows Code - chaz/openbox/blob - otk/pseudorendercontrol.cc
9759dc70938258671fa2d6d6a312767e4d6923ff
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 const ScreenInfo
*info
= display
->screenInfo(_screen
);
29 printf("Initializing PseudoColor RenderControl\n");
33 PseudoRenderControl::~PseudoRenderControl()
35 printf("Destroying PseudoColor RenderControl\n");
40 void PseudoRenderControl::drawGradientBackground(
41 Surface
&sf
, const RenderTexture
&texture
) const
45 void PseudoRenderControl::drawBackground(Surface
& sf
,
46 const RenderTexture
&texture
) const
48 assert(_screen
== sf
._screen
);
49 assert(_screen
== texture
.color().screen());
51 if (texture
.gradient() == RenderTexture::Solid
) {
52 drawSolidBackground(sf
, texture
);
54 drawGradientBackground(sf
, texture
);
This page took 0.034776 seconds and 4 git commands to generate.