use screen instead of its ImageControl to get/set the image dither value

This commit is contained in:
Dana Jansens 2002-05-11 18:36:26 +00:00
parent c7810a3c38
commit f804f86c3e
2 changed files with 4 additions and 4 deletions

View 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;
}

View 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);