OSDN Git Service

ansii rendering is working ^^
authorsparky4 <sparky4@cock.li>
Tue, 14 Jul 2015 13:52:26 +0000 (08:52 -0500)
committersparky4 <sparky4@cock.li>
Tue, 14 Jul 2015 13:52:26 +0000 (08:52 -0500)
modified:   fontgfx.exe
modified:   src/fontgfx.c
modified:   src/lib/16text.h

fontgfx.exe
src/fontgfx.c
src/lib/16text.h

index d3f896a..4486581 100644 (file)
Binary files a/fontgfx.exe and b/fontgfx.exe differ
index 85fb555..d138cc7 100644 (file)
 \r
 void main(int argc, char near *argv[])\r
 {
+       byte e;
+       word chx, chy;
        textInit();
        modexEnter();\r
-       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();
 }\r
index 935fb67..9f0034e 100644 (file)
@@ -5,7 +5,9 @@
  * They copy the font characters directly to VGA.\r
  */\r
 #ifndef TEXT_H\r
-#define TEXT_H\r
+#define TEXT_H
+#include <jstring.h>
+#include <jctype.h>\r
 #include "src/lib/types.h"\r
 \r
 /* font information type */\r