char c;\r
word s, o, t, w;\r
word addr = (word) l;
- byte *pal, *pal2, fond;
- bitmap_t fontdata;
+ //byte *pal, *pal2, fond;
+ //bitmap_t fontdata;
page_t page;\r
textInit();\r
\r
}
//load our palette\r
- modexLoadPalFile("data/default.pal", &pal2);
+ //modexLoadPalFile("data/default.pal", &pal2);
- fontdata.width=8;
+ /*fontdata.width=8;
fontdata.height=w;
fontdata.palette=pal2;
j=1<<8;\r
while(j)
{
- fond=(byte)l[i] & j;
+ fond=(byte)l[i] & j ? '1':'0';
fontdata.data=&(fond);
printf("%02x ", *(fontdata.data));\r
j>>=1;\r
while(!getch())\r
{\r
//DrawPBuf(&page, 0, 0, p, 0);\r
- }\r
+ }*/\r
\r
// save the palette\r
- pal = modexNewPal();\r
+ /*pal = modexNewPal();\r
modexPalSave(pal);\r
modexFadeOff(4, pal);\r
modexPalBlack();\r
-\r
+*/\r
modexEnter();\r
- modexPalBlack();\r
+/* modexPalBlack();*/\r
\r
// set up the page, but with 16 pixels on all borders in offscreen mem\r
page=modexDefaultPage();\r
modexShowPage(&page);
modexClearRegion(&page, 0, 0, SCREEN_WIDTH, SCREEN_HEIGHT, 1);
// fade in\r
- modexFadeOn(4, pal2);
+ //modexFadeOn(4, pal2);
//render the letter in ascii art\r
- /*for(i=0; i<w; i++) {\r
- j=1<<8;\r
- while(j)
- {
- //printf("j=%d\n", j);\r
- //printf("%c", l[i] & j ? '*':' ');
- //====printf("%02x ", l[i] & j);
- modexClearRegion(&page, 120, 120, 1, 1, l[i] & j);\r
- j>>=1;
- dcount++;\r
- }\r
- //====printf("\n");
- dcount++;\r
- }*/
- modexDrawSprite(&page, 0, 0, &fontdata);
+ for(i=0; i<w; i++)
+ {\r
+ j=1<<8;\r
+ while(j)
+ {
+ //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
+ j>>=1;
+ }\r
+ //====printf("\n");
+ }
+ //modexDrawSprite(&page, 0, 0, &fontdata);
while(!getch())\r
{\r
//DrawPBuf(&page, 0, 0, p, 0);\r
}
// fade back to text mode\r
- modexFadeOff(4, pal2);\r
- modexPalBlack();\r
+ /*modexFadeOff(4, pal2);\r
+ modexPalBlack();*/\r
modexLeave();\r
- modexPalBlack();\r
- modexFadeOn(4, pal);
+ /*modexPalBlack();\r
+ modexFadeOn(4, pal);*/
}\r