home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Tricks of the Game Programming Gurus
/
Tricks_of_the_Game_Programming_Gurus_SAMS_Publishing_1994.iso
/
source
/
chap_02
/
fillc.c
< prev
next >
Wrap
Text File
|
1994-04-29
|
492b
|
37 lines
#include <stdio.h>
#define VGA256 0x13
#define TEXT_MODE 0x03
extern void Set_Mode(int mode);
extern void Fill_Screen(int color);
void main(void)
{
int t;
// set video mode to 320x200 256 color mode
Set_Mode(VGA256);
// fill the screen with 1's which in the defualt pallete will be blue
for (t=0; t<1000; t++)
Fill_Screen(t);
// wait for keyboard to be hit
// while(!kbhit()){}
// go back to text mode
Set_Mode(TEXT_MODE);
} // end main