summaryrefslogtreecommitdiff
path: root/otk/rendercontrol.cc
diff options
context:
space:
mode:
authorDana Jansens <danakj@orodu.net>2003-02-14 23:05:59 +0000
committerDana Jansens <danakj@orodu.net>2003-02-14 23:05:59 +0000
commit7fe3301e7ea905a8a76d54c22751f3d8a346e28b (patch)
tree8b81be235862807c55393d35eb5830779afeecb1 /otk/rendercontrol.cc
parent299dc47a6b6379bba77fc489ef6825dcfe18faf5 (diff)
Add the "obsetroot" tool. Use it to set the root background.
Diffstat (limited to 'otk/rendercontrol.cc')
-rw-r--r--otk/rendercontrol.cc22
1 files changed, 12 insertions, 10 deletions
diff --git a/otk/rendercontrol.cc b/otk/rendercontrol.cc
index a4de270a..8f932968 100644
--- a/otk/rendercontrol.cc
+++ b/otk/rendercontrol.cc
@@ -13,16 +13,23 @@
#include "surface.hh"
#include "font.hh"
#include "ustring.hh"
+#include "property.hh"
extern "C" {
-#ifdef HAVE_STDLIB_H
-# include <stdlib.h>
-#endif // HAVE_STDLIB_H
+#ifdef HAVE_SYS_WAIT_H
+# include <sys/wait.h>
+#endif // HAVE_SYS_WAIT_H
+
+#ifdef HAVE_UNISTD_H
+# include <unistd.h>
+#endif // HAVE_UNISTD_H
#include "../src/gettext.h"
#define _(str) gettext(str)
}
+#include <cstdlib>
+
namespace otk {
RenderControl *RenderControl::getRenderControl(int screen)
@@ -47,8 +54,10 @@ RenderControl *RenderControl::getRenderControl(int screen)
RenderControl::RenderControl(int screen)
: _screen(screen)
+
{
printf("Initializing RenderControl\n");
+
}
RenderControl::~RenderControl()
@@ -56,13 +65,6 @@ RenderControl::~RenderControl()
printf("Destroying RenderControl\n");
}
-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 RenderColor &color,
const ustring &string) const