]> 4ch.mooo.com Git - 16.git/commitdiff
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 d3f896aa566d5d79b351d3fbe0f00f8edd5ccec1..44865810bfc40e5f3dae3f0cbc5b24e2f0294044 100644 (file)
Binary files a/fontgfx.exe and b/fontgfx.exe differ
index 85fb555b5055771b648793457e6463c59d236cf3..d138cc756f05a642e4748fe92dae99e9a82aab2f 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 935fb67fe0e61b7491a4cf85ba1094d14214a672..9f0034e4b93489fb57f2c03ff1b441f342c01904 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