diff options
author | Guenter Geiger <ggeiger@users.sourceforge.net> | 2005-05-22 13:17:33 +0000 |
---|---|---|
committer | Guenter Geiger <ggeiger@users.sourceforge.net> | 2005-05-22 13:17:33 +0000 |
commit | e9cfee216e5573afa717057075d1800e2c041b13 (patch) | |
tree | cb4034ef3d630f46455821ac07b02898924cd8bf /gui | |
parent | fad1613cd9d067371343b1f4efa23aad50cb9a4a (diff) |
Something weird is going on with CR, have to check that later
svn path=/trunk/externals/ggee/; revision=3062
Diffstat (limited to 'gui')
-rw-r--r-- | gui/gcanvas.c | 63 |
1 files changed, 31 insertions, 32 deletions
diff --git a/gui/gcanvas.c b/gui/gcanvas.c index d59c983..b13951c 100644 --- a/gui/gcanvas.c +++ b/gui/gcanvas.c @@ -1,43 +1,42 @@ -/* (C) Guenter Geiger <geiger@xdv.org> */
-
-
-#include <m_pd.h>
-#include "g_canvas.h"
-
-/* ------------------------ gcanvas ----------------------------- */
-
-
-#define BACKGROUNDCOLOR "grey"
-
-#define DEFAULTSIZE 80
-
-static t_class *gcanvas_class;
-
-typedef struct _gcanvas
-{
- t_object x_obj;
- t_glist * x_glist;
- t_outlet* out2;
- int x_width;
- int x_height;
- int x;
- int y;
-} t_gcanvas;
-
-/* widget helper functions */
-
-void gcanvas_drawme(t_gcanvas *x, t_glist *glist, int firsttime)
+/* (C) Guenter Geiger <geiger@xdv.org> */ + + +#include <m_pd.h> +#include "g_canvas.h" + +/* ------------------------ gcanvas ----------------------------- */ + + +#define BACKGROUNDCOLOR "grey" + +#define DEFAULTSIZE 80 + +static t_class *gcanvas_class; + +typedef struct _gcanvas +{ + t_object x_obj; + t_glist * x_glist; + t_outlet* out2; + int x_width; + int x_height; + int x; + int y; +} t_gcanvas; + +/* widget helper functions */ + +void gcanvas_drawme(t_gcanvas *x, t_glist *glist, int firsttime) {
if (firsttime) {
- sys_vgui(".x%x.c create rectangle \
-%d %d %d %d -tags %xS -fill %s\n",
+ sys_vgui(".x%x.c create rectangle %d %d %d %d -tags %xS -fill %s\n",
glist_getcanvas(glist),
x->x_obj.te_xpix, x->x_obj.te_ypix,
x->x_obj.te_xpix + x->x_width, x->x_obj.te_ypix + x->x_height,
x,BACKGROUNDCOLOR);
}
else {
- sys_vgui(".x%x.c coords %xS \
+ sys_vgui(".x%x.c coords %xS \ %d %d %d %d\n",
glist_getcanvas(glist), x,
x->x_obj.te_xpix, x->x_obj.te_ypix,
|