projects
/
goodguy
/
history.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
font debug env var, drag fixes, cposer hide scrollbar, plugin tool tip
[goodguy/history.git]
/
cinelerra-5.1
/
cinelerra
/
appearanceprefs.C
diff --git
a/cinelerra-5.1/cinelerra/appearanceprefs.C
b/cinelerra-5.1/cinelerra/appearanceprefs.C
index 46badb85276be26b9a0c7e14bdfdcf0bc6b45558..c054e3401d3591a1e29990206e3632a788afba87 100644
(file)
--- a/
cinelerra-5.1/cinelerra/appearanceprefs.C
+++ b/
cinelerra-5.1/cinelerra/appearanceprefs.C
@@
-516,7
+516,12
@@
HighlightInverseColor::HighlightInverseColor(PreferencesWindow *pwindow, int x,
int HighlightInverseColor::handle_event()
{
int inverse_color = strtoul(get_text(),0,16);
int HighlightInverseColor::handle_event()
{
int inverse_color = strtoul(get_text(),0,16);
- inverse_color &= 0xffffff;
+ if( (inverse_color &= 0xffffff) == 0 ) {
+ inverse_color = 0xffffff;
+ char string[BCSTRLEN];
+ sprintf(string,"%06x", inverse_color);
+ update(string);
+ }
pwindow->thread->preferences->highlight_inverse = inverse_color;
return 1;
}
pwindow->thread->preferences->highlight_inverse = inverse_color;
return 1;
}