home *** CD-ROM | disk | FTP | other *** search
/ Liren Large Software Subsidy 7 / 07.iso / c / c005 / 4.ddi / C / GVHORIZ.C < prev    next >
Encoding:
C/C++ Source or Header  |  1986-08-05  |  1.9 KB  |  59 lines

  1. /**
  2. *
  3. * Name        gvhoriz -- Horizontally scroll columns of text on the
  4. *               current display page via BIOS or directly.
  5. *
  6. * Synopsis    scrolled = gvhoriz(num_cols,attrib,
  7. *                    u_row,u_col,l_row,l_col,dir);
  8. *
  9. *        int scrolled      Number of columns actually scrolled.
  10. *        int num_cols      Number of columns to scroll.    A value
  11. *                  of 0 specifies that all columns
  12. *                  within the region should be scrolled
  13. *                  (thus clearing the region).
  14. *        int attrib      If the screen is in text mode, this
  15. *                  is the attribute to be used on the
  16. *                  vacant columns.  It has the background
  17. *                  attribute in the high order four bits
  18. *                  of the low order byte, and the
  19. *                  foreground in the low order nybble.
  20. *                  If the screen is in graphics mode, this
  21. *                  is the color to use for the scrolled text.
  22. *        int u_row,u_col   Upper left corner of region.
  23. *        int l_row,l_col   Lower right corner of region.
  24. *        int dir       Scrolling direction (SCR_LEFT or
  25. *                  SCR_RIGHT).
  26. *
  27. * Description    This function moves columns of characters within a
  28. *        defined rectangular region to the left or right.  The
  29. *        vacant columns are filled with blanks and a specified
  30. *        attribute.
  31. *
  32. *        This function is available in two versions.  These call
  33. *        SCHORIZ (which uses BIOS only) or VIHORIZ (direct to
  34. *        video memory) depending on the value of the symbol
  35. *        GV_OPTION.  These versions are therefore subject to
  36. *        differing limitations.
  37. *
  38. * Returns    scrolled      Number of columns actually scrolled.
  39. *
  40. * Version    3.0  (C)Copyright Blaise Computing Inc. 1986
  41. *
  42. **/
  43.  
  44. #include <bgenvid.h>
  45.  
  46. int gvhoriz(num_cols,attrib,u_row,u_col,l_row,l_col,dir)
  47. int num_cols,attrib,u_row,u_col,l_row,l_col,dir;
  48. {
  49. #if (GV_OPTION) == (GV_BIOS)
  50.  
  51.     return schoriz(num_cols,attrib,u_row,u_col,l_row,l_col,dir);
  52.  
  53. #else
  54.  
  55.     return vihoriz(num_cols,attrib,u_row,u_col,l_row,l_col,dir);
  56.  
  57. #endif
  58. }
  59.