colors are back

This commit is contained in:
Dana Jansens 2003-01-18 04:10:17 +00:00
parent 9f705c02b9
commit e3eeac5b6e
2 changed files with 5 additions and 1 deletions

View file

@ -2,6 +2,7 @@
#include "rendercontrol.hh" #include "rendercontrol.hh"
#include <stdio.h> #include <stdio.h>
#include <X11/Xlib.h>
int main(int argc, char **argv) int main(int argc, char **argv)
{ {
@ -15,7 +16,9 @@ int main(int argc, char **argv)
otk::RenderControl *rc = otk::RenderControl::getRenderControl(0); otk::RenderControl *rc = otk::RenderControl::getRenderControl(0);
rc->render(&foo); rc->render(&foo);
XSetWindowBackgroundPixmap(**otk::display, foo.window(), foo.pixmap());
XClearWindow(**otk::display, foo.window());
app.run(); app.run();
delete rc; delete rc;

View file

@ -27,6 +27,7 @@ public:
virtual const Point& size() const { return _size; } virtual const Point& size() const { return _size; }
virtual int width() const { return _size.x(); } virtual int width() const { return _size.x(); }
virtual int height() const { return _size.y(); } virtual int height() const { return _size.y(); }
virtual Pixmap pixmap() const { return _pm; } // TEMP
friend class TrueRenderControl; friend class TrueRenderControl;
}; };