#include "rendercontrol.hh"
#include "truerendercontrol.hh"
#include "rendertexture.hh"
+#include "rendercolor.hh"
#include "display.hh"
#include "screeninfo.hh"
#include "surface.hh"
-#include "color.hh"
#include "font.hh"
#include "ustring.hh"
# include <stdlib.h>
#endif // HAVE_STDLIB_H
-#include "gettext.h"
+#include "../src/gettext.h"
#define _(str) gettext(str)
}
}
+void RenderControl::drawRoot(const RenderColor &color) const
+{
+ Window root = display->screenInfo(_screen)->rootWindow();
+ XSetWindowBackground(**display, root, color.pixel());
+ XClearWindow(**display, root);
+}
+
void RenderControl::drawString(Surface& sf, const Font &font, int x, int y,
- const Color &color, const ustring &string) const
+ const RenderColor &color,
+ const ustring &string) const
{
assert(sf._screen == _screen);
XftDraw *d = sf._xftdraw;
else
XftDrawString8(d, &c, font._xftfont, x, font._xftfont->ascent + y,
(FcChar8*)string.c_str(), string.bytes());
-
return;
}