X-Git-Url: http://4ch.mooo.com/gitweb/?a=blobdiff_plain;ds=sidebyside;f=src%2Ffonttes0.c;h=54d9b9acfdc2d8bc5021e8021c1e5639a09de2a4;hb=3cbecf7e85296631b7b05e755777870adeeab392;hp=9b5b89c4ef44eeb3715186f2107237c8ba3326e1;hpb=419bebfa81244ec6362f29e03d7cb0e1a19b3aef;p=16.git diff --git a/src/fonttes0.c b/src/fonttes0.c index 9b5b89c4..54d9b9ac 100644 --- a/src/fonttes0.c +++ b/src/fonttes0.c @@ -22,16 +22,20 @@ #include #include #include "lib/types.h" -#include "lib/16text.h" +#include "lib/16text.h" +#include "lib/modex16.h" -void main(int argc, char *argv[]) +void main(int argc, char near *argv[]) { int i; int j; char l[16]; char c; word s, o, t, w; - word addr = (word) l; + word addr = (word) l; + //byte *pal, *pal2, fond; + //bitmap_t fontdata; + page_t page; textInit(); //print the addresses of the fonts @@ -95,15 +99,79 @@ void main(int argc, char *argv[]) INC DI DEC CX JNZ L1 - } + } + + //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); + }*/ - //render the letter in ascii art - for(i=0; i>=1; - } - printf("\n"); - } + // save the palette + /*pal = modexNewPal(); + modexPalSave(pal); + modexFadeOff(4, pal); + modexPalBlack(); +*/ + modexEnter(); +/* modexPalBlack();*/ + + // set up the page, but with 16 pixels on all borders in offscreen mem + page=modexDefaultPage(); + //page.width += 32; + //page.height += 32; + modexShowPage(&page); + modexClearRegion(&page, 0, 0, SCREEN_WIDTH, SCREEN_HEIGHT, 1); + // fade in + //modexFadeOn(4, pal2); + + //render the letter in ascii art + for(i=0; i>=1; + } + //====printf("\n"); + } + //modexDrawSprite(&page, 0, 0, &fontdata); + while(!getch()) + { + //DrawPBuf(&page, 0, 0, p, 0); + } + + // fade back to text mode + /*modexFadeOff(4, pal2); + modexPalBlack();*/ + modexLeave(); + /*modexPalBlack(); + modexFadeOn(4, pal);*/ + }