home *** CD-ROM | disk | FTP | other *** search
- #include <stdio.h>
- #include <graphics.h>
-
- void bgiem_main() {
- int driver;
- int mode;
- int i;
-
- driver = VGA;
- mode = VGAHI;
- initgraph(&driver,&mode,NULL);
-
- setcolor(RED);
- for (i=0;i<640;i+=4) {
- line(320,240,i,0);
- line(320,240,i,480);
- }
- for (i=0;i<=480;i+=4) {
- line(320,240,0,i);
- line(320,240,640,i);
- }
- setcolor(LIGHTBLUE);
- settextstyle(COMPLEX_FONT,0,HORIZ_DIR);
- settextjustify(CENTER_TEXT,CENTER_TEXT);
- outtextxy(320,240,"BGI EMULATION LIBRARY");
- setusercharsize(1,2,1,2);
- outtextxy(320,260,"(Pretty cheezy demo eh?)");
- return;
- }
-
-