projects
/
goodguy
/
cinelerra.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
version update
[goodguy/cinelerra.git]
/
cinelerra-5.1
/
cinelerra
/
colorpicker.C
diff --git
a/cinelerra-5.1/cinelerra/colorpicker.C
b/cinelerra-5.1/cinelerra/colorpicker.C
index d14b4c1f90da8044bc96efdedecd9b9f67f434fe..b1e2a94969a5cb745170c9b29b532e51ca6b7a44 100644
(file)
--- a/
cinelerra-5.1/cinelerra/colorpicker.C
+++ b/
cinelerra-5.1/cinelerra/colorpicker.C
@@
-109,6
+109,8
@@
ColorWindow::ColorWindow(ColorPicker *thread, int x, int y, int w, int h, const
ColorGUI(this)
{
this->thread = thread;
ColorGUI(this)
{
this->thread = thread;
+// *** CONTEXT_HELP ***
+ context_help_set_keyword("Title");
}
ColorWindow::~ColorWindow()
}
ColorWindow::~ColorWindow()
@@
-156,7
+158,6
@@
ColorGUI::ColorGUI(BC_WindowBase *window)
hue = 0; sat = 0; val = 0;
red = 0; grn = 0; blu = 0;
lum = 0; c_r = 0; c_b = 0;
hue = 0; sat = 0; val = 0;
red = 0; grn = 0; blu = 0;
lum = 0; c_r = 0; c_b = 0;
- alpha = 0;
hsv_h = 0; hsv_s = 0; hsv_v = 0;
rgb_r = 0; rgb_g = 0; rgb_b = 0;
hsv_h = 0; hsv_s = 0; hsv_v = 0;
rgb_r = 0; rgb_g = 0; rgb_b = 0;
@@
-1364,7
+1365,7
@@
void ColorButtonPicker::update(int color, int alpha)
int ColorButtonPicker::handle_new_color(int color, int alpha)
{
color_button->lock_window("ColorButtonPicker::handle_new_color");
int ColorButtonPicker::handle_new_color(int color, int alpha)
{
color_button->lock_window("ColorButtonPicker::handle_new_color");
- color_button->update_gui(color
, alpha
);
+ color_button->update_gui(color);
color_button->unlock_window();
return color_button->handle_new_color(color, alpha);
}
color_button->unlock_window();
return color_button->handle_new_color(color, alpha);
}
@@
-1451,7
+1452,8
@@
void ColorBoxButton::create_objects()
void ColorBoxButton::set_color(int color)
{
this->color = (color & 0xffffff);
void ColorBoxButton::set_color(int color)
{
this->color = (color & 0xffffff);
- this->alpha = (~color>>24) & 0xff;
+ if( this->alpha >= 0 )
+ this->alpha = (~color>>24) & 0xff;
int r = (color>>16) & 0xff;
int g = (color>> 8) & 0xff;
int b = (color>> 0) & 0xff;
int r = (color>>16) & 0xff;
int g = (color>> 8) & 0xff;
int b = (color>> 0) & 0xff;
@@
-1513,7
+1515,8
@@
void ColorCircleButton::create_objects()
void ColorCircleButton::set_color(int color)
{
this->color = (color & 0xffffff);
void ColorCircleButton::set_color(int color)
{
this->color = (color & 0xffffff);
- this->alpha = (~color>>24) & 0xff;
+ if( this->alpha >= 0 )
+ this->alpha = (~color>>24) & 0xff;
int r = (color>>16) & 0xff;
int g = (color>>8) & 0xff;
int b = (color>>0) & 0xff;
int r = (color>>16) & 0xff;
int g = (color>>8) & 0xff;
int b = (color>>0) & 0xff;