9 bmp = modexLoadPcx("ed.pcx");
\r
12 /* fix up the palette and everything */
\r
13 modexPalUpdate(bmp.palette);
\r
15 /* don't show the drawing page */
\r
16 modexShowPage(VGA + PAGE_SIZE);
\r
18 /* clear and draw one sprite and one bitmap */
\r
19 modexClearRegion(VGA, 0, 0, SCREEN_WIDTH, SCREEN_HEIGHT, 1);
\r
20 modexDrawBmp(VGA, 20, 20, &bmp, 1);
\r
21 modexDrawBmp(VGA, 100, 20, &bmp, 0);
\r
23 // for(index = 0; index<500; index++) {
\r
24 while(!kbhit()){ // conditions of screen saver
\r
27 if(ch==0x71)break; // 'q'
\r
28 if(ch==0x1b)break; // 'ESC'
\r