From: sparky4 Date: Mon, 13 Jul 2015 16:23:35 +0000 (-0500) Subject: FONT IS RENDERABLE!!! to a degree... X-Git-Url: http://4ch.mooo.com/gitweb/?a=commitdiff_plain;h=209c9e440e930886d078f6fa9b9a1ff866cec8f3;p=16.git FONT IS RENDERABLE!!! to a degree... modified: fonttes0.exe modified: src/fonttes0.c --- diff --git a/fonttes0.exe b/fonttes0.exe index 9a542864..63752af3 100644 Binary files a/fonttes0.exe and b/fonttes0.exe differ diff --git a/src/fonttes0.c b/src/fonttes0.c index d7037e32..3c57bb18 100644 --- a/src/fonttes0.c +++ b/src/fonttes0.c @@ -27,7 +27,7 @@ void main(int argc, char near *argv[]) { - int i, p; + int i, xp; int j; char l[16]; char c; @@ -147,22 +147,26 @@ void main(int argc, char near *argv[]) // fade in //modexFadeOn(4, pal2); - //render the letter in ascii art - p=0; + //render the letter in ascii art for(i=0; i>=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; } - //====printf("\n"); + //==== + //printf("\n"); } //modexDrawSprite(&page, 0, 0, &fontdata); while(!getch())