From 9279c5e7c0fe55640abdefdf6aab8219bd47604e Mon Sep 17 00:00:00 2001 From: sparky4 Date: Sun, 17 Apr 2016 17:28:58 -0500 Subject: [PATCH] wwww --- src/fontgfx.c | 25 +++++++++++++++---------- src/lib/bakapee.h | 1 + src/lib/scroll16.c | 2 ++ src/lib/scroll16.h | 6 ++++++ src/scroll.c | 2 +- 5 files changed, 25 insertions(+), 11 deletions(-) diff --git a/src/fontgfx.c b/src/fontgfx.c index 2abb13ff..1fb477df 100755 --- a/src/fontgfx.c +++ b/src/fontgfx.c @@ -61,8 +61,8 @@ IIIIIII BBBBBBBBB MMMM M MMMM\n\ ,'___...---~~~\n\ "; // static byte *rosa; - static word chx, chy, colpee; - textInit(); + static word chx;//, chy, colpee; +// textInit(); VGAmodeX(1, 1, &gvar); /* setup camera and screen~ */ gvar.video.page[0] = modexDefaultPage(&gvar.video.page[0]); @@ -72,22 +72,27 @@ IIIIIII BBBBBBBBB MMMM M MMMM\n\ //modexprint(16, 16, 1, 15, "wwww"); //getch(); chx=0; - chy=0; - colpee=32; +// chy=0; +// colpee=32; + /* position the cursor to home */ + vga_moveto(0,0); + vga_sync_bios_cursor(); for(e=0x00; e<=0xFE; e++) { if(chx+8>(gvar.video.page[0].width/2)) { chx=0; - chy+=8; - sprintf(pee,"%u", colpee); - modexprint(&gvar.video.page[0], 200, 200, 1, 47, 0, &pee, 1); + printf("\n"); +// chy+=8; +// sprintf(pee,"%u", colpee); +// modexprint(&gvar.video.page[0], 200, 200, 1, 47, 0, &pee, 1); //getch(); } - modexprint(&gvar.video.page[0], chx, chy, 1, 0, colpee, &e, 1); + printf("%c", e); +// modexprint(&gvar.video.page[0], chx, chy, 1, 0, colpee, &e, 1); chx+=9; - colpee++; - if(colpee>=32+24) colpee=32; +// colpee++; +// if(colpee>=32+24) colpee=32; } //modexprint(100, 100, 1, 47, 0, "wwww"); getch(); diff --git a/src/lib/bakapee.h b/src/lib/bakapee.h index e06c0b8f..a6076daf 100755 --- a/src/lib/bakapee.h +++ b/src/lib/bakapee.h @@ -28,6 +28,7 @@ #include #include #include + //#include "src/lib/modex/modex.h" //#include "16/x/modex.h" diff --git a/src/lib/scroll16.c b/src/lib/scroll16.c index e71079a2..69ec8720 100755 --- a/src/lib/scroll16.c +++ b/src/lib/scroll16.c @@ -600,6 +600,8 @@ void shinku(map_view_t *pip, global_game_variables_t *gv) word type = 1; //t=(((*(gv->clock))-gv->clock_start) /18.2); //sprintf(gv->pee, "%f fps", (double)gv->kurokku.tiku/ticktock(gv)); + vga_moveto(x,y); + vga_sync_bios_cursor(); printf("%f fps", (double)gv->kurokku.tiku/ticktock(gv)); //modexprint(pip[1].page, 16, 16, 1, 15, 0, gv->pee, 1); //(gv->clock_start)=*(gv->clock); diff --git a/src/lib/scroll16.h b/src/lib/scroll16.h index d55d395a..77065af9 100755 --- a/src/lib/scroll16.h +++ b/src/lib/scroll16.h @@ -33,6 +33,12 @@ #include "src/lib/16_timer.h" #include "src/lib/wcpu/wcpu.h" +#include +#include +#include +#include +#include + //#define SPRITE //#define TILERENDER diff --git a/src/scroll.c b/src/scroll.c index e2ca23c2..b1b9d5ae 100755 --- a/src/scroll.c +++ b/src/scroll.c @@ -134,7 +134,7 @@ void main(int argc, char *argv[]) modexFadeOff(4, dpal); #endif - textInit(); + //textInit(); VGAmodeX(bakapee, 1, &gvar); // printf("%dx%d\n", gvar.video.page[0].sw, gvar.video.page[0].sh); #ifdef FADE -- 2.39.5