diff options
author | Guenter Geiger <ggeiger@users.sourceforge.net> | 2003-09-15 17:23:25 +0000 |
---|---|---|
committer | Guenter Geiger <ggeiger@users.sourceforge.net> | 2003-09-15 17:23:25 +0000 |
commit | f743e92854752f0b7baa25a2227469e1a5ef9c31 (patch) | |
tree | 17f811e86940684522365e2630c8c6b90c819267 | |
parent | 4e63ca0a66ba3b0e34a8a817a421a60ae2cd3eb8 (diff) |
fixed pre 0.37 compilation via PD_VERSION_MINOR
svn path=/trunk/externals/ggee/; revision=973
-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 { |