Commit de3b35ff authored by pokergaming's avatar pokergaming
Browse files

more removing tabs and reformatting per guidlines

parent 02656c96
......@@ -62,7 +62,7 @@ static void *sigdelwrite_new(t_symbol *s, t_floatarg msec)
if (!*s->s_name) s = gensym("delwrite~");
pd_bind(&x->x_obj.ob_pd, s);
x->x_sym = s;
if (msec == 0) msec = 1000;
if (msec == 0) msec = 1000;
nsamps = msec * sys_getsr() * (t_float)(0.001f);
if (nsamps < 1) nsamps = 1;
nsamps += ((- nsamps) & (SAMPBLK - 1));
......
......@@ -481,16 +481,16 @@ void iemgui_label_getrect(t_iemgui x_gui, t_glist *x,
if (!gop_redraw)
{
//fprintf(stderr,"ignoring label\n");
return;
return;
}
t_float width_multiplier;
int label_length;
int label_length;
int label_x1;
int label_y1;
int label_x2;
int label_y2;
int actual_fontsize; //seems tk does its own thing when it comes to rendering
int actual_fontsize; //seems tk does its own thing when rendering
int actual_height;
if (x->gl_isgraph && !glist_istoplevel(x))
......@@ -520,7 +520,7 @@ void iemgui_label_getrect(t_iemgui x_gui, t_glist *x,
actual_fontsize = x_gui.x_fontsize;
}
actual_height = actual_fontsize;
//exceptions
//exceptions
if (x_gui.x_fsf.x_font_style == 0 &&
(actual_fontsize == 8 || actual_fontsize == 13 ||
actual_fontsize % 10 == 1 || actual_fontsize % 10 == 6 ||
......@@ -618,7 +618,7 @@ void iemgui_shouldvis(void *x, t_iemgui *iemgui, int mode)
sys_vgui(".x%lx.c raise selected %s\n",
canvas, rtext_gettag(yr));
//sys_vgui(".x%lx.c raise all_cords\n", canvas);
}
}
else
{
// fall back to legacy redraw for objects
......@@ -654,7 +654,7 @@ void iemgui_shouldvis(void *x, t_iemgui *iemgui, int mode)
void iemgui_size(void *x, t_iemgui *iemgui)
{
if(glist_isvisible(iemgui->x_glist))
iemgui_shouldvis(x, iemgui, IEM_GUI_DRAW_MODE_MOVE);
iemgui_shouldvis(x, iemgui, IEM_GUI_DRAW_MODE_MOVE);
}
void iemgui_delta(void *x, t_iemgui *iemgui, t_symbol *s, int ac, t_atom *av)
......
......@@ -126,8 +126,8 @@
#define SCALEHANDLE_WIDTH 5
#define SCALEHANDLE_HEIGHT 5
#define LABELHANDLE_WIDTH 5
#define LABELHANDLE_HEIGHT 5
#define LABELHANDLE_WIDTH 5
#define LABELHANDLE_HEIGHT 5
typedef struct _iem_fstyle_flags
{
......@@ -171,7 +171,7 @@ typedef struct _scalehandle
t_pd h_pd;
t_gobj *h_master;
t_symbol *h_bindsym;
int h_scale;
int h_scale;
char h_pathname[64];
char h_outlinetag[64];
int h_dragon;
......@@ -206,15 +206,15 @@ typedef struct _iemgui
t_symbol *x_lab_unexpanded;
int x_binbufindex; /* where in binbuf to find these */
int x_labelbindex; /* where in binbuf to find label */
t_pd *x_handle;
int scale_offset_x;
int scale_offset_y;
int scale_vis;
t_pd *x_lhandle;
int label_offset_x;
int label_offset_y;
int label_vis;
int x_vis; /* is the object drawn? */
t_pd *x_handle;
int scale_offset_x;
int scale_offset_y;
int scale_vis;
t_pd *x_lhandle;
int label_offset_x;
int label_offset_y;
int label_vis;
int x_vis; /* is the object drawn? */
int x_changed; /* has the value changed so that we need to do graphic update */
} t_iemgui;
......@@ -322,11 +322,11 @@ typedef struct _my_numbox
int x_lin0_log1;
char x_buf[IEMGUI_MAX_NUM_LEN];
int x_numwidth;
int x_scalewidth; /* temporary value when resizing */
int x_scaleheight; /* temporary value when resizing */
int x_tmpfontsize; /* temporary value when resizing */
int x_scalewidth; /* temporary value when resizing */
int x_scaleheight; /* temporary value when resizing */
int x_tmpfontsize; /* temporary value when resizing */
int x_log_height;
int x_hide_frame; /* 0 default, 1 just arrow, 2, just frame, 3 both */
int x_hide_frame; /* 0 default, 1 just arrow, 2, just frame, 3 both */
} t_my_numbox;
typedef struct _vdial
......
This diff is collapsed.
This diff is collapsed.
......@@ -299,12 +299,12 @@ void u8_dec(char *s, int *i)
void u8_inc_ptr(char **sp)
{
(void)(isutf(*(++(*sp))) || isutf(*(++(*sp))) ||
isutf(*(++(*sp))) || ++(*sp));
isutf(*(++(*sp))) || ++(*sp));
}
/*-- moo --*/
void u8_dec_ptr(char **sp)
{
(void)(isutf(*(--(*sp))) || isutf(*(--(*sp))) ||
isutf(*(--(*sp))) || --(*sp));
isutf(*(--(*sp))) || --(*sp));
}
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