aboutsummaryrefslogtreecommitdiff
path: root/externals/grill/guitest/flgui.cpp
diff options
context:
space:
mode:
authorThomas Grill <xovo@users.sourceforge.net>2002-12-17 04:36:31 +0000
committerThomas Grill <xovo@users.sourceforge.net>2002-12-17 04:36:31 +0000
commita5b45e8e2e99686ea73fa2793d7fec84f0d1a3ed (patch)
tree4b31406382bacd13aa784ea22d584ac634f8d8ad /externals/grill/guitest/flgui.cpp
parenta0cb0bd2e02740e50ec16dde2fb4e07f1702d1d0 (diff)
""
svn path=/trunk/; revision=303
Diffstat (limited to 'externals/grill/guitest/flgui.cpp')
-rw-r--r--externals/grill/guitest/flgui.cpp16
1 files changed, 8 insertions, 8 deletions
diff --git a/externals/grill/guitest/flgui.cpp b/externals/grill/guitest/flgui.cpp
index 86d8e4ea..1bad0851 100644
--- a/externals/grill/guitest/flgui.cpp
+++ b/externals/grill/guitest/flgui.cpp
@@ -7,7 +7,7 @@
#include <stdlib.h>
-#ifdef PD
+#if FLEXT_SYS == FLEXT_SYS_PD
t_class *flext_gui::px_class = NULL;
t_class *flext_gui::pxkey_class = NULL;
@@ -31,10 +31,10 @@ struct flext_gui::pxkey_object // no virtual table!
flext_gui::flext_gui(int xs,int ys):
objs(NULL),
-#ifdef PD
+#if FLEXT_SYS == FLEXT_SYS_PD
xsize(xs),ysize(ys),
#endif
-#ifdef MAXMSP
+#if FLEXT_SYS == FLEXT_SYS_MAX
curx(-1),cury(-1),curmod(-1),
created(false),
#endif
@@ -43,7 +43,7 @@ flext_gui::flext_gui(int xs,int ys):
canvas = new Canvas(thisCanvas());
objs = new GuiGroup(canvas);
-#ifdef PD
+#if FLEXT_SYS == FLEXT_SYS_PD
AddCanvas();
#else
t_box *b = (t_box *)gensym("#B")->s_thing;
@@ -58,7 +58,7 @@ flext_gui::flext_gui(int xs,int ys):
flext_gui::~flext_gui()
{
-#ifdef PD
+#if FLEXT_SYS == FLEXT_SYS_PD
RmvCanvas();
#endif
@@ -69,7 +69,7 @@ flext_gui::~flext_gui()
void flext_gui::setup(t_class *c)
{
-#ifdef PD
+#if FLEXT_SYS == FLEXT_SYS_PD
SetWidget(c);
pxkey_class = class_new(gensym("flext_gui key proxy"),NULL,NULL,sizeof(pxkey_object),CLASS_PD|CLASS_NOINLET, A_NULL);
@@ -105,7 +105,7 @@ void flext_gui::setup(t_class *c)
#endif
}
-#ifdef PD
+#if FLEXT_SYS == FLEXT_SYS_PD
int flext_gui::evmask = evMotion|evMouseDown|evKeyDown|evKeyUp;
int flext_gui::curmod = 0;
@@ -216,7 +216,7 @@ void flext_gui::pxkey_method(pxkey_object *obj,const t_symbol *s,int argc,t_atom
}
}
}
-#ifdef DEBUG
+#if 0 //def FLEXT_DEBUG
else
post("unknown modifier %s",str);
#endif