more dithering fix.

This commit is contained in:
Dana Jansens 2002-04-26 07:38:17 +00:00
parent b2453eec0e
commit 3001cec790
2 changed files with 3 additions and 5 deletions

View file

@ -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());

View file

@ -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();
}