use screen instead of its ImageControl to get/set the image dither value
This commit is contained in:
parent
c7810a3c38
commit
f804f86c3e
2 changed files with 4 additions and 4 deletions
|
@ -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;
|
||||
}
|
||||
|
|
|
@ -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);
|
||||
|
|
Loading…
Reference in a new issue