usb_direct fix for rev2 shuttle, playbackengine locks again, viewer cursor fix
[goodguy/cinelerra.git] / cinelerra-5.1 / guicast / bcscrollbar.C
index 680341d0beebf0e990e1b74a5bf42c62670e9473..a148bc305383fd1ec01b435ff043e687a1f50a0e 100644 (file)
@@ -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;
        }
 }