From 4d035c645584451925ee533e7bd9e1158b5cf7da Mon Sep 17 00:00:00 2001 From: neoraider Date: Wed, 29 Aug 2007 19:54:05 +0000 Subject: zoomedit: Einige Rauminformationen werden jetzt angezeigt & Name kann ge?ndert werden. --- zoomedit.c | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) (limited to 'zoomedit.c') diff --git a/zoomedit.c b/zoomedit.c index bedee53..0d90aa3 100644 --- a/zoomedit.c +++ b/zoomedit.c @@ -1,11 +1,12 @@ #include +#include #include "level.h" #include "window.h" int main(int argc, char *argv[]) { - VERTEX vertices[4] = {{-1.1,-1}, {-1,-1.1}, {1.1,1}, {1,1.1}}; - ROOM room = {sizeof(vertices)/sizeof(vertices[0]), vertices}; + VERTEX vertices[4] = {{0,-1}, {1,0}, {0,1}, {-1,0}}; + ROOM room = {{sizeof(vertices)/sizeof(vertices[0]), vertices}, calloc(1, sizeof(unsigned char))}; LEVEL lvl = {1, &room}; GtkWidget *window; @@ -19,5 +20,7 @@ int main(int argc, char *argv[]) { gtk_main(); + free(room.name); + return 0; } -- cgit v1.2.3