home *** CD-ROM | disk | FTP | other *** search
- char arrow[] = {
- 0x02,0x00, 0x03,0x00, 0xFF,0x80, 0xFF,0xC0,
- 0xFF,0x80, 0x03,0x00, 0x02,0x00
- };
-
- main()
- {
- int old_mode;
-
- if (fg_testmode(13,1) == 0) {
- printf("This program requires a 320 ");
- printf("x 200 EGA graphics mode.\n");
- exit();
- }
-
- old_mode = fg_getmode();
- fg_setmode(13);
- fg_setclip(0,15,0,199);
- fg_setcolor(15);
-
- fg_move(10,10);
- fg_drwimage(arrow,2,7);
- fg_move(10,20);
- fg_clpimage(arrow,2,7);
- fg_move(4,30);
- fg_revimage(arrow,2,7);
- fg_move(4,40);
- fg_flpimage(arrow,2,7);
- fg_waitkey();
-
- fg_setmode(old_mode);
- fg_reset();
- }