From 3001cec7901b119ec8cdfb87a78142be264f8039 Mon Sep 17 00:00:00 2001 From: Dana Jansens Date: Fri, 26 Apr 2002 07:38:17 +0000 Subject: [PATCH] more dithering fix. --- src/Configmenu.cc | 3 +-- src/Screen.cc | 5 ++--- 2 files changed, 3 insertions(+), 5 deletions(-) diff --git a/src/Configmenu.cc b/src/Configmenu.cc index 413e0b25..0bef3d2e 100644 --- a/src/Configmenu.cc +++ b/src/Configmenu.cc @@ -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()); diff --git a/src/Screen.cc b/src/Screen.cc index e7f6f6f3..1de7c0bf 100644 --- a/src/Screen.cc +++ b/src/Screen.cc @@ -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(); } -- 2.45.2