]> 4ch.mooo.com Git - 16.git/commitdiff
FONT IS RENDERABLE!!! to a degree...
authorsparky4 <sparky4@cock.li>
Mon, 13 Jul 2015 16:23:35 +0000 (11:23 -0500)
committersparky4 <sparky4@cock.li>
Mon, 13 Jul 2015 16:23:35 +0000 (11:23 -0500)
modified:   fonttes0.exe
modified:   src/fonttes0.c

fonttes0.exe
src/fonttes0.c

index 9a542864b4ba93136774d830f50a007628bf1d06..63752af3104fa9ce64d5af36c2d93b6ffd5df254 100644 (file)
Binary files a/fonttes0.exe and b/fonttes0.exe differ
index d7037e3282da17f63fd67fe9e26caff3c7ae1494..3c57bb188e66a5f1cdbbab486069a299f243c3fb 100644 (file)
@@ -27,7 +27,7 @@
 \r
 void main(int argc, char near *argv[])\r
 {\r
-    int i, p;\r
+    int i, xp;\r
     int j;\r
        char l[16];\r
     char c;\r
@@ -147,22 +147,26 @@ void main(int argc, char near *argv[])
        // fade in\r
        //modexFadeOn(4, pal2);
 
-       //render the letter in ascii art
-       p=0;\r
+       //render the letter in ascii art\r
        for(i=0; i<w; i++)
        {\r
-               j=1<<8;\r
+               j=1<<8;
+               xp=0;\r
                while(j)
                {
                        //printf("j=%d\n", j);\r
                        //printf("%c", l[i] & j ? '*':' ');
                        //====printf("%02x ", l[i] & j);
-                               modexClearRegion(&page, 0, p, 8, 1, l[i] & j ? 8:0);
-while(!getch());
-                       p++;
-               j>>=1;
+                       //printf("l[i]=%d       ", l[i]);
+                       //printf("j=%d  ", j);
+                       //printf("%02x\n", l[i] & j);
+                               modexClearRegion(&page, xp, i*4, 4, 4, l[i] & j ? 15:0);
+//while(!getch());
+                       xp+=4;
+                       j>>=1;
                }\r
-               //====printf("\n");
+               //====
+               //printf("\n");
        }
        //modexDrawSprite(&page, 0, 0, &fontdata);
        while(!getch())\r