From: sparky4 Date: Tue, 14 Jul 2015 16:16:53 +0000 (-0500) Subject: ANSII only version is compleate! X-Git-Url: http://4ch.mooo.com/gitweb/?a=commitdiff_plain;h=ba0a313becc1f0520957706bcd69923503a06b57;p=16.git ANSII only version is compleate! modified: fontgfx.exe modified: src/fontgfx.c modified: src/lib/modex16.c --- diff --git a/fontgfx.exe b/fontgfx.exe index 796ed4c3..f3762e24 100644 Binary files a/fontgfx.exe and b/fontgfx.exe differ diff --git a/src/fontgfx.c b/src/fontgfx.c index 14184577..74bbdb9e 100644 --- a/src/fontgfx.c +++ b/src/fontgfx.c @@ -28,30 +28,32 @@ void main(int argc, char near *argv[]) { //JMOJI - byte e; + static byte e; word chx, chy, colpee; textInit(); - modexEnter(); + modexEnter(); //modexprint(16, 16, 1, 15, "wwww"); //getch(); chx=0; chy=0; - colpee=0; - for(e=' '; e<='~'; e++) + colpee=32; + for(e=0x01; e<=0xFE; e++) { - if(chx+8>(SCREEN_WIDTH/2)-1) + if(chx+8>(SCREEN_WIDTH/2)-16) { chx=0; chy+=8; modexprint(200, 200, 1, 47, 0, &e); + //getch(); } modexprint(chx, chy, 1, 0, colpee, &e); chx+=9; - colpee++; + colpee++; + if(colpee>=32+24) colpee=32; } - modexprint(100, 100, 1, 47, 0, "wwww"); + //modexprint(100, 100, 1, 47, 0, "wwww"); getch(); modexLeave(); - printf("\n\n%u %c", ''); - printf("\n%c\n", e); + //printf("\nh=%d\n", '8'); + //printf("\n%c\n", e); } diff --git a/src/lib/modex16.c b/src/lib/modex16.c index 1730d5eb..e4dfeea2 100644 --- a/src/lib/modex16.c +++ b/src/lib/modex16.c @@ -1003,7 +1003,7 @@ void modexprint(word x, word y, word t, word col, word bgcol, const byte *str) for(; *str != '\0'; str++) { if(chw>=SCREEN_WIDTH-1) y+=w; - c = *(str); + c = (*str); //load the letter 'A' __asm { MOV DI, addr