]> Dogcows Code - chaz/openbox/commitdiff
move render()
authorDana Jansens <danakj@orodu.net>
Sat, 18 Jan 2003 00:48:23 +0000 (00:48 +0000)
committerDana Jansens <danakj@orodu.net>
Sat, 18 Jan 2003 00:48:23 +0000 (00:48 +0000)
otk/rendercontrol.cc
otk/rendercontrol.hh
otk/truerendercontrol.cc
otk/truerendercontrol.hh

index 1dd5704df54a14b8797e446dd7c4ec84ca4be7a9..9c4f14a738d96a9884f2e9e4b70ac3d169b3544b 100644 (file)
@@ -57,4 +57,14 @@ RenderControl::~RenderControl()
 
 }
 
+
+void RenderControl::render(::Drawable d)
+{
+  Pixmap p = XCreatePixmap(**display, d, 255, 30, _screen->depth());
+
+
+
+  XFreePixmap(**display, p);
+}
+
 }
index cc05a3193815303fcc41c8149d5c6eeddc530ec4..123fd1bfb115a42d5c6c9a26c8fbde1c6ee07bfc 100644 (file)
@@ -13,6 +13,20 @@ class ScreenInfo;
 class RenderControl {
 protected:
   const ScreenInfo *_screen;
+
+  // the number of bits (1-255) that each shade of color spans across. best
+  // case is 1, which gives 255 shades
+  int _red_bits;
+  int _green_bits;
+  int _blue_bits;
+
+  // color tables, meaning, 256 (possibly) different shades of each color,
+  // based on the number of bits there are available for each color in the
+  // visual
+  unsigned char _red_color_table[256];
+  unsigned char _green_color_table[256];
+  unsigned char _blue_color_table[256];
+
 /*
   Bool _dither;
 
@@ -52,7 +66,7 @@ public:
 
   static RenderControl *getRenderControl(int screen);
 
-  virtual void render(::Drawable d) = 0;
+  virtual void render(::Drawable d);
 };
 
 }
index a99b1997e3e09d66267f3b78e4cdae7ac4054777..95a567bcc98b91d8a9885e78e2b25ecb3fb4d136 100644 (file)
@@ -57,8 +57,4 @@ TrueRenderControl::~TrueRenderControl()
 
 }
 
-void TrueRenderControl::render(::Drawable d)
-{
-}
-
 }
index 72e3850e431e7cb47c5e1b15b8d4fad7c8736029..fe79c003d28d56f93b4ca3ce8b258905b4b64612 100644 (file)
@@ -13,24 +13,9 @@ private:
   int _green_offset;
   int _blue_offset;
 
-  // the number of bits (1-255) that each shade of color spans across. best
-  // case is 1, which gives 255 shades
-  int _red_bits;
-  int _green_bits;
-  int _blue_bits;
-
-  // color tables, meaning, 256 (possibly) different shades of each color,
-  // based on the number of bits there are available for each color in the
-  // visual
-  unsigned char _red_color_table[256];
-  unsigned char _green_color_table[256];
-  unsigned char _blue_color_table[256];
-  
 public:
   TrueRenderControl(const ScreenInfo *screen);
   virtual ~TrueRenderControl();
-
-  virtual void render(::Drawable d);
 };
 
 }
This page took 0.025252 seconds and 4 git commands to generate.