]> Dogcows Code - chaz/openbox/commitdiff
use screen instead of its ImageControl to get/set the image dither value
authorDana Jansens <danakj@orodu.net>
Sat, 11 May 2002 18:36:26 +0000 (18:36 +0000)
committerDana Jansens <danakj@orodu.net>
Sat, 11 May 2002 18:36:26 +0000 (18:36 +0000)
src/Configmenu.cc
src/Screen.cc

index b8aef8ce841a7de4154d1cc430189f0bd739bf0e..0a219662a8936b1a1f919a93881ca62af1113c28 100644 (file)
@@ -67,7 +67,7 @@ Configmenu::Configmenu(BScreen &scr) : Basemenu(scr), screen(scr)
 }
 
 void Configmenu::setValues() {
-  setItemSelected(2, screen.getImageControl()->doDither());
+  setItemSelected(2, screen.imageDither());
   setItemSelected(3, screen.opaqueMove());
   setItemSelected(4, screen.fullMax());
   setItemSelected(5, screen.focusNew());
@@ -91,9 +91,9 @@ void Configmenu::itemSelected(int button, int index) {
 
   switch(item->function()) {
   case 1: { // dither
-    screen.setImageDither(!screen.getImageControl()->doDither());
+    screen.setImageDither(!screen.imageDither());
 
-    setItemSelected(index, screen.getImageControl()->doDither());
+    setItemSelected(index, screen.imageDither());
 
     break;
   }
index 6788365847c3d4165e5a86c06322ee23101cadc0..f3ff579e67c4b05c5edc12ac0c84c5d8eeb8a49b 100644 (file)
@@ -956,7 +956,7 @@ void BScreen::setImageDither(bool d, bool reconfig) {
   image_control->setDither(d);
   ostrstream s;
   s << "session.screen" << getScreenNumber() << ".imageDither" << ends;
-  config.setValue(s.str(), d);
+  config.setValue(s.str(), imageDither());
   if (reconfig)
     reconfigure();
   s.rdbuf()->freeze(0);
This page took 0.028745 seconds and 4 git commands to generate.