From fad0bf91612f7569c1d6fb9c30ae6351b46192b4 Mon Sep 17 00:00:00 2001 From: Ivica Ico Bukvic <ico@vt.edu> Date: Tue, 17 May 2011 13:22:00 -0400 Subject: [PATCH] Pd-0.42.5-extended-l2ork-dev-20110517.tar.bz2 --- src/g_hslider.c | 6 ++++++ src/g_text.c | 1 + src/g_vslider.c | 6 ++++++ src/m_pd.h | 2 +- 4 files changed, 14 insertions(+), 1 deletion(-) diff --git a/src/g_hslider.c b/src/g_hslider.c index e7e74b753..b519cea6b 100644 --- a/src/g_hslider.c +++ b/src/g_hslider.c @@ -318,6 +318,9 @@ static void hslider_draw_select(t_hslider* x,t_glist* glist) } } +void hslider_check_minmax(t_hslider *x, double min, double max); +void hslider_check_width(t_hslider *x, int w); + static void hslider__clickhook(t_scalehandle *sh, t_floatarg f, t_floatarg xxx, t_floatarg yyy) { @@ -361,6 +364,9 @@ static void hslider__clickhook(t_scalehandle *sh, t_floatarg f, t_floatarg xxx, sys_vgui(".gfxstub%lx.dim.h_ent insert 0 %d\n", properties, x->x_gui.x_h); } + hslider_check_width(x, x->x_gui.x_w); + hslider_check_minmax(x, x->x_min, x->x_max); + if (glist_isvisible(x->x_gui.x_glist)) { sys_vgui(".x%x.c delete %s\n", x->x_gui.x_glist, sh->h_outlinetag); diff --git a/src/g_text.c b/src/g_text.c index 4c1f2ebcf..0ff6a3980 100644 --- a/src/g_text.c +++ b/src/g_text.c @@ -183,6 +183,7 @@ void canvas_howputnew(t_canvas *x, int *connectp, int *xpixp, int *ypixp, else if (!g->g_next) indx = nobj-1; } + x->gl_editor->e_onmotion = MA_NONE; sys_vgui("pdtk_canvas_getscroll .x%lx.c\n", x); } else diff --git a/src/g_vslider.c b/src/g_vslider.c index e59bc94bd..d4df4c55c 100644 --- a/src/g_vslider.c +++ b/src/g_vslider.c @@ -309,6 +309,9 @@ static void vslider_draw_select(t_vslider *x, t_glist *glist) } } +void vslider_check_minmax(t_vslider *x, double min, double max); +void vslider_check_height(t_vslider *x, int w); + static void vslider__clickhook(t_scalehandle *sh, t_floatarg f, t_floatarg xxx, t_floatarg yyy) { @@ -343,6 +346,9 @@ static void vslider__clickhook(t_scalehandle *sh, t_floatarg f, t_floatarg xxx, canvas_dirty(x->x_gui.x_glist, 1); } + vslider_check_height(x, x->x_gui.x_h); + vslider_check_minmax(x, x->x_min, x->x_max); + int properties = gfxstub_haveproperties((void *)x); if (properties) { diff --git a/src/m_pd.h b/src/m_pd.h index e7a0e4d63..8215fec50 100644 --- a/src/m_pd.h +++ b/src/m_pd.h @@ -11,7 +11,7 @@ extern "C" { #define PD_MAJOR_VERSION 0 #define PD_MINOR_VERSION 42 #define PD_BUGFIX_VERSION 5 -#define PD_TEST_VERSION "extended-l2ork-20110427" +#define PD_TEST_VERSION "extended-l2ork-20110517" /* old name for "MSW" flag -- we have to take it for the sake of many old "nmakefiles" for externs, which will define NT and not MSW */ -- GitLab