From: Dana Jansens Date: Sat, 18 Jan 2003 04:10:17 +0000 (+0000) Subject: colors are back X-Git-Url: https://git.brokenzipper.com/gitweb?a=commitdiff_plain;h=e3eeac5b6eee29009f3417f309a261d43fd39d27;p=chaz%2Fopenbox colors are back --- diff --git a/otk/rendertest.cc b/otk/rendertest.cc index d3e38ae8..2cf63f37 100644 --- a/otk/rendertest.cc +++ b/otk/rendertest.cc @@ -2,6 +2,7 @@ #include "rendercontrol.hh" #include +#include 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; diff --git a/otk/surface.hh b/otk/surface.hh index 0c64c6f5..b027f796 100644 --- a/otk/surface.hh +++ b/otk/surface.hh @@ -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; };