diff --git a/pd/src/g_hslider.c b/pd/src/g_hslider.c index 37cc7929ff34ebdcbedcd3a94ba569e8c3923f57..3287f51e862bd27564d8a44053dd84271f9b9c6d 100644 --- a/pd/src/g_hslider.c +++ b/pd/src/g_hslider.c @@ -557,7 +557,7 @@ static void hslider_getrect(t_gobj *z, t_glist *glist, *xp1 = text_xpix(&x->x_gui.x_obj, glist); *yp1 = text_ypix(&x->x_gui.x_obj, glist); - *xp2 = *xp1 + x->x_gui.x_w + 8; + *xp2 = *xp1 + x->x_gui.x_w + 5; *yp2 = *yp1 + x->x_gui.x_h; iemgui_label_getrect(x->x_gui, glist, xp1, yp1, xp2, yp2); diff --git a/pd/src/g_vslider.c b/pd/src/g_vslider.c index c24e61f1c92c2da42f267fe04bff9d42b76fece7..7514b31e056a84fc2ca97738b8e30719337cd132 100644 --- a/pd/src/g_vslider.c +++ b/pd/src/g_vslider.c @@ -568,7 +568,7 @@ static void vslider_getrect(t_gobj *z, t_glist *glist, *xp1 = text_xpix(&x->x_gui.x_obj, glist); *yp1 = text_ypix(&x->x_gui.x_obj, glist); *xp2 = *xp1 + x->x_gui.x_w; - *yp2 = *yp1 + x->x_gui.x_h + 7; + *yp2 = *yp1 + x->x_gui.x_h + 5; iemgui_label_getrect(x->x_gui, glist, xp1, yp1, xp2, yp2); } diff --git a/pd/src/g_vumeter.c b/pd/src/g_vumeter.c index 93f24a82fe921f38745602fd2da5d2b313c19397..71b04d304b829f7498ccb85f875683da03983091 100644 --- a/pd/src/g_vumeter.c +++ b/pd/src/g_vumeter.c @@ -839,18 +839,20 @@ static void vu_getrect(t_gobj *z, t_glist *glist, int k1=x->x_led_size+1, k2=IEM_VU_STEPS+1, k3=k1/2, k4=ypos-k3; *xp1 = text_xpix(&x->x_gui.x_obj, glist); - *yp1 = text_ypix(&x->x_gui.x_obj, glist); - *xp2 = *xp1 + x->x_gui.x_w + 3; - *yp2 = *yp1 + x->x_gui.x_h + 6; + *yp1 = text_ypix(&x->x_gui.x_obj, glist) + 2; + *xp2 = *xp1 + x->x_gui.x_w + 2; + *yp2 = *yp1 + x->x_gui.x_h + 2; iemgui_label_getrect(x->x_gui, glist, xp1, yp1, xp2, yp2); - //vu has custom scale all labels unlike other iemgui object - end=xpos+x->x_gui.x_w+4; - yyy = k4 + k1*(k2-1); - vu_scale_getrect(x->x_gui, glist, xp1, yp1, xp2, yp2, end+1, yyy+k3+2); - yyy = k4; - vu_scale_getrect(x->x_gui, glist, xp1, yp1, xp2, yp2, end+1, yyy+k3+2); + if (x->x_scale) { + //vu has custom scale all labels unlike other iemgui object + end=xpos+x->x_gui.x_w+4; + yyy = k4 + k1*(k2-1); + vu_scale_getrect(x->x_gui, glist, xp1, yp1, xp2, yp2, end+1, yyy+k3+2); + yyy = k4; + vu_scale_getrect(x->x_gui, glist, xp1, yp1, xp2, yp2, end+1, yyy+k3+2); + } } static void vu_save(t_gobj *z, t_binbuf *b)