]> Dogcows Code - chaz/openbox/blobdiff - otk/pseudorendercontrol.cc
add ABOUT-NLS
[chaz/openbox] / otk / pseudorendercontrol.cc
index 9759dc70938258671fa2d6d6a312767e4d6923ff..e239a4f040172a996d8b9b775de69e0fb72118fc 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,22 +22,12 @@ 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,
@@ -48,11 +36,9 @@ void PseudoRenderControl::drawBackground(Surface& sf,
   assert(_screen == sf._screen);
   assert(_screen == texture.color().screen());
 
-  if (texture.gradient() == RenderTexture::Solid) {
-    drawSolidBackground(sf, texture);
-  } else {
-    drawGradientBackground(sf, texture);
-  }
+  // in psuedo color, gradients aren't even worth while! just draw a solid!
+  //if (texture.gradient() == RenderTexture::Solid) {
+  drawSolidBackground(sf, texture);
 }
 
 }
This page took 0.020331 seconds and 4 git commands to generate.