X-Git-Url: https://git.cinelerra-gg.org/git/?p=goodguy%2Fcinelerra.git;a=blobdiff_plain;f=cinelerra-5.1%2Fcinelerra%2Fcolorpicker.C;fp=cinelerra-5.1%2Fcinelerra%2Fcolorpicker.C;h=097bcec8949aa7bbc1b5b3f40a9ae5cf217a5f0d;hp=1b40fcf0c38f8d00bca6f4b35972422918d71c3c;hb=83bfb86d01b353bab485d0ccc336e0572bcb63c6;hpb=5cdeee0e01761c9d53c45ab7d8983f7fb376a487 diff --git a/cinelerra-5.1/cinelerra/colorpicker.C b/cinelerra-5.1/cinelerra/colorpicker.C index 1b40fcf0..097bcec8 100644 --- a/cinelerra-5.1/cinelerra/colorpicker.C +++ b/cinelerra-5.1/cinelerra/colorpicker.C @@ -43,8 +43,8 @@ ColorPicker::ColorPicker(int do_alpha, const char *title) 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() @@ -63,6 +63,8 @@ void ColorPicker::start_window(int output, int alpha, int do_okcancel) } return; } + this->orig_color = output; + this->orig_alpha = alpha; this->output = output; this->alpha = alpha; this->do_okcancel = do_okcancel;