diff options
-rw-r--r-- | gui/button.c | 8 | ||||
-rw-r--r-- | gui/fatom.h | 7 |
2 files changed, 14 insertions, 1 deletions
diff --git a/gui/button.c b/gui/button.c index 90a21f2..9831057 100644 --- a/gui/button.c +++ b/gui/button.c @@ -10,6 +10,10 @@ #pragma warning( disable : 4305 ) #endif +#if PD_VERSION_MINOR < 37 +#define t_rtext t_text +#endif + #define IOWIDTH 4 typedef struct _button @@ -237,7 +241,11 @@ static void button_vis(t_gobj *z, t_glist *glist, int vis) t_rtext *y; DEBUG(post("vis: %d",vis);) if (vis) { +#ifdef PD_MINOR_VERSION y = (t_rtext *) rtext_new(glist, (t_text *)z); +#else + y = (t_rtext *) rtext_new(glist, (t_text *)z,0,0); +#endif button_drawme(s, glist, 1); } else { diff --git a/gui/fatom.h b/gui/fatom.h index cea48c2..5900acd 100644 --- a/gui/fatom.h +++ b/gui/fatom.h @@ -1,7 +1,8 @@ /* ------------------------ fatom ----------------------------- */ #define x_val a_pos.a_w.w_float -#define DEBUG(x) x +#define DEBUG(x) + typedef struct _fatom { @@ -293,7 +294,11 @@ static void fatom_vis(t_gobj *z, t_glist *glist, int vis) t_rtext *y; DEBUG(post("vis: %d",vis);) if (vis) { +#ifdef PD_MINOR_VERSION y = (t_rtext *) rtext_new(glist, (t_text *)z); +#else + y = (t_rtext *) rtext_new(glist, (t_text *)z,0,0); +#endif fatom_drawme(s, glist, 1); } else { |