]> Dogcows Code - chaz/openbox/commitdiff
colors are back
authorDana Jansens <danakj@orodu.net>
Sat, 18 Jan 2003 04:10:17 +0000 (04:10 +0000)
committerDana Jansens <danakj@orodu.net>
Sat, 18 Jan 2003 04:10:17 +0000 (04:10 +0000)
otk/rendertest.cc
otk/surface.hh

index d3e38ae802fadcfdbe9544fb633558d2a5f3d3c3..2cf63f371f8a619b25a2fe3ca11e9471954d607e 100644 (file)
@@ -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;
index 0c64c6f5b3eed1ab8f2229ca4f1f8807a5f1e1e4..b027f7961f24346ce0d7933f3e1564af73d8466c 100644 (file)
@@ -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;
 };
This page took 0.028029 seconds and 4 git commands to generate.