home *** CD-ROM | disk | FTP | other *** search
/ Team Palmtops 7 / Palmtops_numero07.iso / Epoc / Palmtime / files / FrotzS5_src.ZIP / S5screen.cpp < prev    next >
Encoding:
C/C++ Source or Header  |  1999-12-11  |  883 b   |  39 lines

  1. /*
  2.  * file "S5screen.c"
  3.  *
  4.  *
  5.  */
  6.  
  7. #include "frotz.h"
  8. #include "S5frotz.h"
  9. #include "S5api.h"
  10.  
  11.  
  12. /*
  13.  * os_erase_area
  14.  *
  15.  * Fill a rectangular area of the screen with the current background
  16.  * colour. Top left coordinates are (1,1). The cursor does not move.
  17.  *
  18.  */
  19.  
  20. void os_erase_area (struct sg *g, short top, short left, short bottom, short right)
  21. {
  22.     SrvEraseRect(g,top, left, bottom, right, g->scrn_attr);
  23. }/* os_erase_area */
  24.  
  25.  
  26. /*
  27.  * os_scroll_area
  28.  *
  29.  * Scroll a rectangular area of the screen up (units > 0) or down
  30.  * (units < 0) and fill the empty space with the current background
  31.  * colour. Top left coordinates are (1,1). The cursor stays put.
  32.  *
  33.  */
  34.  
  35. void os_scroll_area (struct sg *g, short top, short left, short bottom, short right, short units)
  36. {
  37.     SrvScroll(g,top, left, bottom, right, units, g->scrn_attr);
  38. }/* os_scroll_area */
  39.