From: sparky4 Date: Mon, 13 Jul 2015 15:46:18 +0000 (-0500) Subject: pee of baka! X-Git-Url: http://4ch.mooo.com/gitweb/?a=commitdiff_plain;h=00a550c3060b41efb25026a7f755214a0482dffe;p=16.git pee of baka! modified: fonttes0.exe modified: src/fonttes0.c --- diff --git a/fonttes0.exe b/fonttes0.exe index 13430cf7..d8cd874c 100644 Binary files a/fonttes0.exe and b/fonttes0.exe differ diff --git a/src/fonttes0.c b/src/fonttes0.c index 15dbb874..30630749 100644 --- a/src/fonttes0.c +++ b/src/fonttes0.c @@ -33,7 +33,8 @@ void main(int argc, char near *argv[]) char c; word s, o, t, w; word addr = (word) l; - byte *pal, *pal2; + byte *pal, *pal2, fond; + bitmap_t fontdata; page_t page; textInit(); @@ -98,9 +99,35 @@ void main(int argc, char near *argv[]) INC DI DEC CX JNZ L1 - } - /*//load our palette - modexLoadPalFile("data/default.pal", &pal2); + } + + //load our palette + modexLoadPalFile("data/default.pal", &pal2); + + fontdata.width=8; + fontdata.height=w; + fontdata.palette=pal2; + + fontdata.data=malloc(256); + + for(i=0; i>=1; + } + printf("\n"); + } + + printf("\n\nok hit a key~\n"); + while(!getch()) + { + //DrawPBuf(&page, 0, 0, p, 0); + } // save the palette pal = modexNewPal(); @@ -113,30 +140,39 @@ void main(int argc, char near *argv[]) // set up the page, but with 16 pixels on all borders in offscreen mem page=modexDefaultPage(); - page.width += 32; - page.height += 32; + //page.width += 32; + //page.height += 32; modexShowPage(&page); + modexClearRegion(&page, 0, 0, SCREEN_WIDTH, SCREEN_HEIGHT, 1); // fade in - modexFadeOn(4, pal2);*/ + modexFadeOn(4, pal2); //render the letter in ascii art - for(i=0; i>=1; + { + //printf("j=%d\n", j); + //printf("%c", l[i] & j ? '*':' '); + //====printf("%02x ", l[i] & j); + modexClearRegion(&page, 120, 120, 1, 1, l[i] & j); + j>>=1; + dcount++; } - printf("\n"); - } + //====printf("\n"); + dcount++; + }*/ + modexDrawSprite(&page, 0, 0, &fontdata); + while(!getch()) + { + //DrawPBuf(&page, 0, 0, p, 0); + } - /*// fade back to text mode + // fade back to text mode modexFadeOff(4, pal2); modexPalBlack(); modexLeave(); modexPalBlack(); - modexFadeOn(4, pal);*/ + modexFadeOn(4, pal); }