#include "lib/16text.h"
#include "lib/modex16.h"\r
\r
-void main(int argc, char *argv[])\r
+void main(int argc, char near *argv[])\r
{\r
int i;\r
int j;\r
DEC CX\r
JNZ L1\r
}\r
- /* load our palette */\r
+ /*//load our palette\r
modexLoadPalFile("data/default.pal", &pal2);\r
\r
- /* save the palette */\r
+ // save the palette\r
pal = modexNewPal();\r
modexPalSave(pal);\r
- modexFadeOff(1, pal);\r
+ modexFadeOff(4, pal);\r
modexPalBlack();\r
\r
modexEnter();\r
modexPalBlack();\r
\r
- /* set up the page, but with 16 pixels on all borders in offscreen mem */\r
+ // set up the page, but with 16 pixels on all borders in offscreen mem\r
page=modexDefaultPage();\r
page.width += 32;\r
page.height += 32;
modexShowPage(&page);
- /* fade in */\r
- modexFadeOn(1, pal2);
+ // fade in\r
+ modexFadeOn(4, pal2);*/
//render the letter in ascii art\r
for(i=0; i<w; i++) {\r
j=1<<8;\r
- while(j) {\r
- //printf("%c", l[i] & j ? '*':' ');
+ while(j)
+ {\r
+ printf("%c", l[i] & j ? '*':' ');
//====printf("%02x ", l[i] & j/* ? '*':' '*/);
- modexClearRegion(&page, 4, 4, 1, 1, l[i] & j);\r
+ //modexClearRegion(&page, l[i] & j, l[i] & j, 1, 1, l[i] & j);\r
j>>=1;\r
}\r
printf("\n");\r
}
- /* fade back to text mode */\r
- modexFadeOff(1, pal2);\r
+ /*// fade back to text mode\r
+ modexFadeOff(4, pal2);\r
modexPalBlack();\r
modexLeave();\r
modexPalBlack();\r
- modexFadeOn(1, pal);
+ modexFadeOn(4, pal);*/
}\r