home *** CD-ROM | disk | FTP | other *** search
/ C++ Games Programming / CPPGAMES.ISO / fgl / fglight / exc.arj / TEMP / 13-04.C < prev    next >
Text File  |  1995-01-20  |  489b  |  31 lines

  1. #include <fastgraf.h>
  2.  
  3. void main(void);
  4.  
  5. void main()
  6. {
  7.    int old_mode;
  8.  
  9.    fg_initpm();
  10.    old_mode = fg_getmode();
  11.    fg_setmode(3);
  12.    fg_cursor(0);
  13.  
  14.    fg_setcolor(7);
  15.    fg_rect(0,79,0,24);
  16.    fg_setattr(10,7,0);
  17.    fg_text("line one",8);
  18.    fg_locate(1,0);
  19.    fg_text("line two",8);
  20.    fg_waitkey();
  21.  
  22.    fg_setcolor(7);
  23.    fg_scroll(0,7,1,1,1,1);
  24.    fg_waitkey();
  25.    fg_scroll(0,7,2,2,-1,1);
  26.    fg_waitkey();
  27.  
  28.    fg_setmode(old_mode);
  29.    fg_reset();
  30. }
  31.