]> 4ch.mooo.com Git - 16.git/commitdiff
getting closer!
authorsparky4 <sparky4@cock.li>
Mon, 13 Jul 2015 16:07:19 +0000 (11:07 -0500)
committersparky4 <sparky4@cock.li>
Mon, 13 Jul 2015 16:07:19 +0000 (11:07 -0500)
modified:   fonttes0.exe
modified:   src/fonttes0.c

fonttes0.exe
src/fonttes0.c

index 75ef045f9c04bb5c33504a677d7fda93b2d62099..9a542864b4ba93136774d830f50a007628bf1d06 100644 (file)
Binary files a/fonttes0.exe and b/fonttes0.exe differ
index 54d9b9acfdc2d8bc5021e8021c1e5639a09de2a4..d7037e3282da17f63fd67fe9e26caff3c7ae1494 100644 (file)
@@ -27,7 +27,7 @@
 \r
 void main(int argc, char near *argv[])\r
 {\r
-    int i;\r
+    int i, p;\r
     int j;\r
        char l[16];\r
     char c;\r
@@ -147,7 +147,8 @@ void main(int argc, char near *argv[])
        // fade in\r
        //modexFadeOn(4, pal2);
 
-       //render the letter in ascii art\r
+       //render the letter in ascii art
+       p=0;\r
        for(i=0; i<w; i++)
        {\r
                j=1<<8;\r
@@ -156,7 +157,9 @@ void main(int argc, char near *argv[])
                        //printf("j=%d\n", j);\r
                        //printf("%c", l[i] & j ? '*':' ');
                        //====printf("%02x ", l[i] & j);
-                       modexClearRegion(&page, 0, 0, 8, w, l[i] & j ? 1:8);\r
+                               modexClearRegion(&page, 0, p, 8, 1, l[i] & j ? 8:0);
+while(!getch());
+                       p++;
                j>>=1;
                }\r
                //====printf("\n");
@@ -173,5 +176,20 @@ void main(int argc, char near *argv[])
        modexLeave();\r
        /*modexPalBlack();\r
        modexFadeOn(4, pal);*/
+       //render the letter in ascii art\r
+       for(i=0; i<w; i++)
+       {\r
+               j=1<<8;\r
+               while(j)
+               {
+                       printf("%c", l[i] & j ? '*':' ');
+                       //====printf("%02x ", l[i] & j);
+//while(!getch());
+               j>>=1;
+               }\r
+               printf("\n");
+       }
+       printf("\ni=%d\n", i);
+       printf("j=%d\n", j);
 
 }\r