11 bmp = modexLoadPcx("ed.pcx");
12 bmp2 = modexLoadPcx("ed2.pcx");
13 bmp3 = modexLoadPcx("koishi^^.pcx");
\r
16 /* fix up the palette and everything */
\r
17 //modexPalUpdate(bmp.palette);
18 modexPalUpdate(bmp2.palette);
\r
20 /* don't show the drawing page */
\r
21 modexShowPage(VGA + PAGE_SIZE);
\r
23 /* clear and draw one sprite and one bitmap */
\r
24 modexClearRegion(VGA, 0, 0, SCREEN_WIDTH, SCREEN_HEIGHT, 0);
\r
25 modexDrawBmp(VGA, 20, 20, &bmp2, 0);
\r
26 modexDrawBmp(VGA, 180, 20, &bmp, 1);
27 modexDrawBmp(VGA, 170, 100, &bmp3, 0);
\r
29 // for(index = 0; index<500; index++) {
\r
30 while(!kbhit()){ // conditions of screen saver
\r
33 if(ch==0x71)break; // 'q'
\r
34 if(ch==0x1b)break; // 'ESC'
\r