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()) { switch(item->function()) {
case 1: { // dither case 1: { // dither
screen.getImageControl()-> screen.setImageDither(!screen.getImageControl()->doDither());
setDither((! screen.getImageControl()->doDither()));
setItemSelected(index, 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(); image_control->installRootColormap();
root_colormap_installed = True; root_colormap_installed = True;
image_control->setDither(resource.image_dither);
load(); // load config options from Resources load(); // load config options from Resources
LoadStyle(); LoadStyle();
@ -852,12 +850,13 @@ void BScreen::setAutoRaise(bool a) {
void BScreen::setImageDither(bool d, bool reconfig) { void BScreen::setImageDither(bool d, bool reconfig) {
resource.image_dither = d; resource.image_dither = d;
image_control->setDither(d);
std::ostrstream s; std::ostrstream s;
s << "session.screen" << getScreenNumber() << ".imageDither" << ends; s << "session.screen" << getScreenNumber() << ".imageDither" << ends;
config.setValue(s.str(), resource.image_dither); config.setValue(s.str(), resource.image_dither);
s.rdbuf()->freeze(0); s.rdbuf()->freeze(0);
if (reconfig) if (reconfig)
openbox.reconfigure(); reconfigure();
} }