colors are back
This commit is contained in:
parent
9f705c02b9
commit
e3eeac5b6e
2 changed files with 5 additions and 1 deletions
|
@ -2,6 +2,7 @@
|
|||
#include "rendercontrol.hh"
|
||||
|
||||
#include <stdio.h>
|
||||
#include <X11/Xlib.h>
|
||||
|
||||
int main(int argc, char **argv)
|
||||
{
|
||||
|
@ -15,7 +16,9 @@ int main(int argc, char **argv)
|
|||
otk::RenderControl *rc = otk::RenderControl::getRenderControl(0);
|
||||
|
||||
rc->render(&foo);
|
||||
|
||||
XSetWindowBackgroundPixmap(**otk::display, foo.window(), foo.pixmap());
|
||||
XClearWindow(**otk::display, foo.window());
|
||||
|
||||
app.run();
|
||||
|
||||
delete rc;
|
||||
|
|
|
@ -27,6 +27,7 @@ public:
|
|||
virtual const Point& size() const { return _size; }
|
||||
virtual int width() const { return _size.x(); }
|
||||
virtual int height() const { return _size.y(); }
|
||||
virtual Pixmap pixmap() const { return _pm; } // TEMP
|
||||
|
||||
friend class TrueRenderControl;
|
||||
};
|
||||
|
|
Loading…
Reference in a new issue