switch(item->function()) {
case 1: { // dither
- screen.getImageControl()->
- setDither((! screen.getImageControl()->doDither()));
+ screen.setImageDither(!screen.getImageControl()->doDither());
setItemSelected(index, screen.getImageControl()->doDither());
image_control->installRootColormap();
root_colormap_installed = True;
- image_control->setDither(resource.image_dither);
-
load(); // load config options from Resources
LoadStyle();
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();
}