projects
/
goodguy
/
cinelerra.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
back by popular demand: load mode icons, tweak shapewipe layout
[goodguy/cinelerra.git]
/
cinelerra-5.1
/
guicast
/
bclistbox.C
diff --git
a/cinelerra-5.1/guicast/bclistbox.C
b/cinelerra-5.1/guicast/bclistbox.C
index ef29b0b6eac0dc8848673528f1333ec4d590a1fc..a7cb8b8752077bf87274964a4dc7a0908228908f 100644
(file)
--- a/
cinelerra-5.1/guicast/bclistbox.C
+++ b/
cinelerra-5.1/guicast/bclistbox.C
@@
-551,9
+551,6
@@
int BC_ListBox::draw_button(int flush)
// Draw the button for a popup listbox
if( use_button && is_popup ) {
int image_number = 0;
// Draw the button for a popup listbox
if( use_button && is_popup ) {
int image_number = 0;
-
- draw_top_background(parent_window, 0, 0, w, h);
-
if( button_highlighted )
image_number = 1;
if( current_operation == BUTTON_DN )
if( button_highlighted )
image_number = 1;
if( current_operation == BUTTON_DN )
@@
-561,8
+558,9
@@
int BC_ListBox::draw_button(int flush)
if( disabled )
image_number = 3;
if( disabled )
image_number = 3;
- pixmap->draw_pixmap(button_images[image_number],
- 0, 0, w, h, 0, 0);
+ int iw = button_images[image_number]->get_w();
+ int ih = button_images[image_number]->get_h();
+ pixmap->draw_pixmap(button_images[image_number],0,0,iw,ih);
flash(flush);
}
return 0;
flash(flush);
}
return 0;