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