this->title = title;
this->do_alpha = do_alpha;
this->do_okcancel = 0;
- this->output = BLACK;
- this->alpha = 255;
+ this->output = this->orig_color = BLACK;
+ this->alpha = this->orig_alpha = 255;
}
ColorPicker::~ColorPicker()
}
return;
}
+ this->orig_color = output;
+ this->orig_alpha = alpha;
this->output = output;
this->alpha = alpha;
this->do_okcancel = do_okcancel;
yuv_v->update(yuv.v);
hex_box->update();
- if( thread->do_alpha )
+ if( thread->do_alpha ) {
+ alpha->update(aph);
aph_a->update(aph);
+ }
}
int ColorWindow::handle_event()
int PaletteAlpha::handle_event()
{
window->aph = get_value();
+ window->aph_a->update(window->aph);
window->handle_event();
return 1;
}