From e3eeac5b6eee29009f3417f309a261d43fd39d27 Mon Sep 17 00:00:00 2001 From: Dana Jansens Date: Sat, 18 Jan 2003 04:10:17 +0000 Subject: [PATCH] colors are back --- otk/rendertest.cc | 5 ++++- otk/surface.hh | 1 + 2 files changed, 5 insertions(+), 1 deletion(-) 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; }; -- 2.39.2