projects
/
goodguy
/
history.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
interp bilinear fix
[goodguy/history.git]
/
cinelerra-5.1
/
guicast
/
bcbutton.C
diff --git
a/cinelerra-5.1/guicast/bcbutton.C
b/cinelerra-5.1/guicast/bcbutton.C
index 90a4681db0ddd6d28750315449cdafeb3dc7cce8..6a8b863b1f3d5318f577fe17abb259d69a86af4e 100644
(file)
--- a/
cinelerra-5.1/guicast/bcbutton.C
+++ b/
cinelerra-5.1/guicast/bcbutton.C
@@
-105,6
+105,7
@@
int BC_Button::update_bitmaps(VFrame **data)
void BC_Button::enable()
{
enabled = 1;
void BC_Button::enable()
{
enabled = 1;
+ status = BUTTON_UP;
draw_face();
}
draw_face();
}
@@
-154,12
+155,10
@@
int BC_Button::draw_face(int flush)
int BC_Button::repeat_event(int64_t duration)
{
int BC_Button::repeat_event(int64_t duration)
{
- if( status == BUTTON_UPHI && !tooltip_done &&
- tooltip_text && tooltip_text[0] != 0 &&
+ if( status == BUTTON_UPHI && tooltip_text && tooltip_text[0] != 0 &&
duration == top_level->get_resources()->tooltip_delay )
{
show_tooltip();
duration == top_level->get_resources()->tooltip_delay )
{
show_tooltip();
- tooltip_done = 1;
return 1;
}
return 0;
return 1;
}
return 0;
@@
-169,9
+168,7
@@
int BC_Button::cursor_enter_event()
{
if(is_event_win() && enabled)
{
{
if(is_event_win() && enabled)
{
- tooltip_done = 0;
- if(top_level->button_down)
- {
+ if(top_level->button_down) {
status = BUTTON_DOWNHI;
}
else
status = BUTTON_DOWNHI;
}
else