X-Git-Url: https://git.cinelerra-gg.org/git/?p=goodguy%2Fcinelerra.git;a=blobdiff_plain;f=cinelerra-5.1%2Fguicast%2Fbcscrollbar.C;h=a148bc305383fd1ec01b435ff043e687a1f50a0e;hp=680341d0beebf0e990e1b74a5bf42c62670e9473;hb=3d5faf45a6c261bb3e9973b42cf682415a1fde2e;hpb=7fd85fb66168f6b518c5f2d73e04036e87faa0e1 diff --git a/cinelerra-5.1/guicast/bcscrollbar.C b/cinelerra-5.1/guicast/bcscrollbar.C index 680341d0..a148bc30 100644 --- 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) { - switch(orientation) - { + w = h = pixels; + switch( orientation ) { case SCROLL_HORIZ: - w = pixels; h = data[SCROLL_HANDLE_UP]->get_h(); break; case SCROLL_VERT: w = data[SCROLL_HANDLE_UP]->get_w(); - h = pixels; break; } }