]> Dogcows Code - chaz/openbox/commitdiff
more dithering fix.
authorDana Jansens <danakj@orodu.net>
Fri, 26 Apr 2002 07:38:17 +0000 (07:38 +0000)
committerDana Jansens <danakj@orodu.net>
Fri, 26 Apr 2002 07:38:17 +0000 (07:38 +0000)
src/Configmenu.cc
src/Screen.cc

index 413e0b250a2b54664aa252bc5810e4d548c92142..0bef3d2e6f7d2f0f35a2360c88232793fee663c3 100644 (file)
@@ -91,8 +91,7 @@ void Configmenu::itemSelected(int button, int index) {
 
   switch(item->function()) {
   case 1: { // dither
-    screen.getImageControl()->
-      setDither((! screen.getImageControl()->doDither()));
+    screen.setImageDither(!screen.getImageControl()->doDither());
 
     setItemSelected(index, screen.getImageControl()->doDither());
 
index e7f6f6f3f8c6f5ac0b8fd63c38e1edd5c7a194ae..1de7c0bfb837958bee3a67ba6f73f5aa5842b9e2 100644 (file)
@@ -243,8 +243,6 @@ BScreen::BScreen(Openbox &ob, int scrn, Resource &conf) : ScreenInfo(ob, scrn),
   image_control->installRootColormap();
   root_colormap_installed = True;
 
-  image_control->setDither(resource.image_dither);
-
   load();       // load config options from Resources
   LoadStyle();
 
@@ -852,12 +850,13 @@ void BScreen::setAutoRaise(bool a) {
 
 void BScreen::setImageDither(bool d, bool reconfig) {
   resource.image_dither = d;
+  image_control->setDither(d);
   std::ostrstream s;
   s << "session.screen" << getScreenNumber() << ".imageDither" << ends;
   config.setValue(s.str(), resource.image_dither);
   s.rdbuf()->freeze(0);
   if (reconfig)
-    openbox.reconfigure();
+    reconfigure();
 }
 
 
This page took 0.029148 seconds and 4 git commands to generate.