From f804f86c3eacc11091cbff2fa287799f925c2635 Mon Sep 17 00:00:00 2001 From: Dana Jansens Date: Sat, 11 May 2002 18:36:26 +0000 Subject: [PATCH] use screen instead of its ImageControl to get/set the image dither value --- src/Configmenu.cc | 6 +++--- src/Screen.cc | 2 +- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/src/Configmenu.cc b/src/Configmenu.cc index b8aef8ce..0a219662 100644 --- a/src/Configmenu.cc +++ b/src/Configmenu.cc @@ -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; } diff --git a/src/Screen.cc b/src/Screen.cc index 67883658..f3ff579e 100644 --- a/src/Screen.cc +++ b/src/Screen.cc @@ -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); -- 2.45.2