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
/
setmodec.c
< prev
next >
Wrap
Text File
|
1994-04-29
|
326b
|
29 lines
#include <stdio.h>
#define VGA256 0x13
#define TEXT_MODE 0x03
extern void Set_Mode(int mode);
void main(void)
{
// set video mode to 320x200 256 color mode
Set_Mode(VGA256);
// wait for keyboard to be hit
while(!kbhit()){}
// go back to text mode
Set_Mode(TEXT_MODE);
} // end main