Mercurial > hg > Members > koba > t_dandy
changeset 23:a0ab0c6925bd
fix.
author | koba <koba@cr.ie.u-ryukyu.ac.jp> |
---|---|
date | Sun, 26 Dec 2010 23:40:56 +0900 |
parents | 0440f2f19f23 |
children | 86c6b3bdc763 |
files | Makefile.mac TaskDandy.cc |
diffstat | 2 files changed, 5 insertions(+), 4 deletions(-) [+] |
line wrap: on
line diff
--- a/Makefile.mac Sun Dec 26 22:54:11 2010 +0900 +++ b/Makefile.mac Sun Dec 26 23:40:56 2010 +0900 @@ -37,4 +37,4 @@ .cc.o: $(CC) $(CFLAGS) $(INCLUDES) -c $< -o $@ -debug.o:debug.h +debug.o:debug.h \ No newline at end of file
--- a/TaskDandy.cc Sun Dec 26 22:54:11 2010 +0900 +++ b/TaskDandy.cc Sun Dec 26 23:40:56 2010 +0900 @@ -80,12 +80,14 @@ static int screen_w; static int screen_h; +static int gamef; MainLoopPtr Dandy::init(Viewer *sgroot_, int w, int h) { screen_w = w; screen_h = h; + gamef = 0; sgroot = sgroot_; tmanager = sgroot->manager; return sgroot; @@ -111,11 +113,10 @@ return 0; }; -static int gamef = 0; -HTaskPtr +HTaskPtr Dandy::application_task(HTaskPtr next, Viewer* viewer){ - // printf("gamef = %d\n",gamef); +// printf("gamef = %d\n",gamef); switch (gamef) { case 0: gamef= dandy_main_init(gamef); break; case 1: gamef= gamesyokika(gamef); break;