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
/
guicast
/
bcscrollbar.C
diff --git
a/cinelerra-5.1/guicast/bcscrollbar.C
b/cinelerra-5.1/guicast/bcscrollbar.C
index 680341d0beebf0e990e1b74a5bf42c62670e9473..a148bc305383fd1ec01b435ff043e687a1f50a0e 100644
(file)
--- a/
cinelerra-5.1/guicast/bcscrollbar.C
+++ b/
cinelerra-5.1/guicast/bcscrollbar.C
@@
-86,16
+86,14
@@
void BC_ScrollBar::set_images(VFrame **data)
void BC_ScrollBar::calculate_dimensions(int &w, int &h)
{
void BC_ScrollBar::calculate_dimensions(int &w, int &h)
{
- switch(orientation)
- {
+ w = h = pixels;
+
switch( orientation )
{
case SCROLL_HORIZ:
case SCROLL_HORIZ:
- w = pixels;
h = data[SCROLL_HANDLE_UP]->get_h();
break;
case SCROLL_VERT:
w = data[SCROLL_HANDLE_UP]->get_w();
h = data[SCROLL_HANDLE_UP]->get_h();
break;
case SCROLL_VERT:
w = data[SCROLL_HANDLE_UP]->get_w();
- h = pixels;
break;
}
}
break;
}
}