X-Git-Url: https://git.cinelerra-gg.org/git/?a=blobdiff_plain;ds=inline;f=cinelerra-5.1%2Fcinelerra%2Fzoombar.C;h=b6fd85214a3b625202e82413410133c4a48e9467;hb=05a3780d6edd6a792f0dde46ed69e4b740af5a51;hp=6ed44a6d1d85d55ff85703c89b878b831e2c96e2;hpb=6a9fa3df95fb5ef53e1b09fdd2297a8aaf549fe5;p=goodguy%2Fcinelerra.git diff --git a/cinelerra-5.1/cinelerra/zoombar.C b/cinelerra-5.1/cinelerra/zoombar.C index 6ed44a6d..b6fd8521 100644 --- a/cinelerra-5.1/cinelerra/zoombar.C +++ b/cinelerra-5.1/cinelerra/zoombar.C @@ -440,7 +440,8 @@ int AutoZoom::handle_down_event() AutoTypeMenu::AutoTypeMenu(MWindow *mwindow, ZoomBar *zoombar, int x, int y, int wid) - : BC_PopupMenu(x, y, wid, to_text(mwindow->edl->local_session->zoombar_showautotype), 1) + : BC_PopupMenu(x, y, wid + 24, + to_text(mwindow->edl->local_session->zoombar_showautotype), 1, 0, 12) { this->mwindow = mwindow; this->zoombar = zoombar; @@ -481,14 +482,14 @@ int AutoTypeMenu::from_text(char *text) return AUTOGROUPTYPE_INT255; } -int AutoTypeMenu::draw_face(int dx) +int AutoTypeMenu::draw_face(int dx, int color) { - BC_PopupMenu::draw_face(dx); - int color = mwindow->edl->local_session->zoombar_showautocolor; + BC_PopupMenu::draw_face(dx+8, color); + color = mwindow->edl->local_session->zoombar_showautocolor; if( color >= 0 ) { set_color(color); int margin = get_margin(); - int mx = margin+5, my = 3*margin/8; + int mx = margin+4, my = 3*margin/8; int bh = get_h() - 2*my; draw_box(mx,my, bh,bh); }