]> Dogcows Code - chaz/openbox/blobdiff - otk/pseudorendercontrol.cc
make all the rendering code in RenderControl. use true/pseudo RenderControl classes...
[chaz/openbox] / otk / pseudorendercontrol.cc
index 9759dc70938258671fa2d6d6a312767e4d6923ff..31b4df71505e8c69a78dfd6a53a0d2ba2871aa33 100644 (file)
@@ -1,8 +1,6 @@
 // -*- mode: C++; indent-tabs-mode: nil; c-basic-offset: 2; -*-
 
-#ifdef    HAVE_CONFIG_H
-#  include "../config.h"
-#endif // HAVE_CONFIG_H
+#include "config.h"
 
 #include "pseudorendercontrol.hh"
 #include "display.hh"
@@ -24,35 +22,16 @@ namespace otk {
 PseudoRenderControl::PseudoRenderControl(int screen)
   : RenderControl(screen)
 {
-  const ScreenInfo *info = display->screenInfo(_screen);
-
   printf("Initializing PseudoColor RenderControl\n");
-
 }
 
 PseudoRenderControl::~PseudoRenderControl()
 {
   printf("Destroying PseudoColor RenderControl\n");
-
-
-}
-
-void PseudoRenderControl::drawGradientBackground(
-     Surface &sf, const RenderTexture &texture) const
-{
 }
 
-void PseudoRenderControl::drawBackground(Surface& sf,
-                                      const RenderTexture &texture) const
+void PseudoRenderControl::reduceDepth(Surface &sf, XImage *im) const
 {
-  assert(_screen == sf._screen);
-  assert(_screen == texture.color().screen());
-
-  if (texture.gradient() == RenderTexture::Solid) {
-    drawSolidBackground(sf, texture);
-  } else {
-    drawGradientBackground(sf, texture);
-  }
 }
 
 }
This page took 0.021431 seconds and 4 git commands to generate.