From: sparky4 Date: Tue, 14 Jul 2015 13:52:26 +0000 (-0500) Subject: ansii rendering is working ^^ X-Git-Url: http://4ch.mooo.com/gitweb/?a=commitdiff_plain;h=403a2afcb791925d56ed1d3cab8e02287e22464a;p=16.git ansii rendering is working ^^ modified: fontgfx.exe modified: src/fontgfx.c modified: src/lib/16text.h --- diff --git a/fontgfx.exe b/fontgfx.exe index d3f896aa..44865810 100644 Binary files a/fontgfx.exe and b/fontgfx.exe differ diff --git a/src/fontgfx.c b/src/fontgfx.c index 85fb555b..d138cc75 100644 --- a/src/fontgfx.c +++ b/src/fontgfx.c @@ -27,9 +27,24 @@ void main(int argc, char near *argv[]) { + byte e; + word chx, chy; textInit(); modexEnter(); - modexprint(16, 16, 1, 15, "wwww"); + //modexprint(16, 16, 1, 15, "wwww"); + //getch(); + chx=0; + chy=0; + for(e='!'; e<='~'; e++) + { + modexprint(chx, chy, 1, 15, &e); + chx+=8; + if(chx+8>=SCREEN_WIDTH) + { + chx=0; + chy+=8; + } + } getch(); modexLeave(); } diff --git a/src/lib/16text.h b/src/lib/16text.h index 935fb67f..9f0034e4 100644 --- a/src/lib/16text.h +++ b/src/lib/16text.h @@ -5,7 +5,9 @@ * They copy the font characters directly to VGA. */ #ifndef TEXT_H -#define TEXT_H +#define TEXT_H +#include +#include #include "src/lib/types.h" /* font information type */