Commit 601b74f6 authored by Ivica Bukvic's avatar Ivica Bukvic Committed by Hans-Christoph Steiner
Browse files

Pd-0.42.5-extended-l2ork-dev-20101222.tar.bz2

parent 5a614ede
......@@ -121,8 +121,8 @@
#define SCALE_VU_MINWIDTH 8
#define SCALE_VU_MINHEIGHT 80
#define SCALEHANDLE_WIDTH 10 /* item size is int */
#define SCALEHANDLE_HEIGHT 10
#define SCALEHANDLE_WIDTH 5
#define SCALEHANDLE_HEIGHT 5
typedef struct _iem_fstyle_flags
{
......
......@@ -1520,6 +1520,7 @@ void canvas_doclick(t_canvas *x, int xpos, int ypos, int which,
{
if (x->gl_editor->e_onmotion == MA_MOVE) {
//fprintf(stderr,"letting go of objects\n");
sys_vgui(".x%lx.c raise all_cords\n", x);
sys_vgui("pdtk_canvas_getscroll .x%lx.c\n", x);
}
x->gl_editor->e_grab = 0;
......
......@@ -452,13 +452,19 @@ void rtext_key(t_rtext *x, int keynum, t_symbol *keysym)
{
....
} */
if (x->x_selstart && (x->x_selstart == x->x_selend))
if (x->x_selstart && (x->x_selstart == x->x_selend)) {
x->x_selstart--;
if (glist_isvisible(glist_getcanvas(x->x_glist)))
sys_vgui("pdtk_canvas_getscroll .x%lx.c\n", (t_int)glist_getcanvas(x->x_glist));
}
}
else if (n == 127) /* delete */
{
if (x->x_selend < x->x_bufsize && (x->x_selstart == x->x_selend))
x->x_selend++;
if (glist_isvisible(glist_getcanvas(x->x_glist)))
sys_vgui("pdtk_canvas_getscroll .x%lx.c\n", (t_int)glist_getcanvas(x->x_glist));
}
ndel = x->x_selend - x->x_selstart;
......@@ -480,6 +486,8 @@ be printable in whatever 8-bit character set we find ourselves. */
x->x_buf[x->x_selstart] = n;
x->x_bufsize = newsize;
x->x_selstart = x->x_selstart + 1;
if (glist_isvisible(glist_getcanvas(x->x_glist)))
sys_vgui("pdtk_canvas_getscroll .x%lx.c\n", (t_int)glist_getcanvas(x->x_glist));
}
x->x_selend = x->x_selstart;
x->x_glist->gl_editor->e_textdirty = 1;
......
......@@ -133,6 +133,8 @@ static void canvas_objtext(t_glist *gl, int xpix, int ypix, int selected,
if (pd_class(&x->ob_pd) == voutlet_class)
canvas_resortoutlets(glist_getcanvas(gl));
canvas_unsetcurrent((t_canvas *)gl);
if ( glist_isvisible( ((t_canvas *)gl) ) )
sys_vgui("pdtk_canvas_getscroll .x%lx.c\n", (t_int)gl);
}
extern int sys_noautopatch;
......@@ -1049,6 +1051,25 @@ static void text_getrect(t_gobj *z, t_glist *glist,
{
t_rtext *y = glist_findrtext(glist, x);
width = rtext_width(y);
/* now find if we have more inlets or outlets than
what can comfortably fit and adjust accordingly
but only do so if this is not gop object
*/
//fprintf(stderr,"isgraph %d\n", ((t_glist *)z)->gl_isgraph);
if (!((t_glist *)z)->gl_isgraph) {
t_object *ob = pd_checkobject(&x->te_pd);
int no = obj_noutlets(ob);
int ni = obj_ninlets(ob);
int m = ( ni > no ? ni : no);
if ( width < IOWIDTH * 2 * m ) {
/* we have to resize the object */
width = IOWIDTH * 2 * m;
}
}
height = rtext_height(y) - (iscomment << 1);
}
else width = height = 10;
......
......@@ -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-20101217"
#define PD_TEST_VERSION "extended-l2ork-20101222"
/* 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 */
......
g_text.c: t_canvas *c = glist_getcanvas(y->x_glist);
g_text.c~: t_canvas *c = glist_getcanvas(y->x_glist);
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment