home *** CD-ROM | disk | FTP | other *** search
/ C/C++ Users Group Library 1996 July / C-C++ Users Group Library July 1996.iso / vol_400 / 428_02 / libsrc / wrepa.c < prev    next >
Encoding:
C/C++ Source or Header  |  1994-03-13  |  790 b   |  34 lines

  1. /*
  2. ** wrepa.c
  3. **
  4. ** Pictor, Version 1.51, Copyright (c) 1992-94 SoftCircuits
  5. ** Redistributed by permission.
  6. */
  7.  
  8. #include <stdio.h>
  9. #include "pictor.h"
  10.  
  11.  
  12. /*
  13. ** Prints attribute-only to the current window pane for the
  14. ** specified number of columns.
  15. */
  16. void wrepa(int color,int count)
  17. {
  18.     if(_PL_winhead != NULL) {
  19.         if((unsigned)_CURR_WPANE.row < (unsigned)getwrows() &&
  20.             (unsigned)_CURR_WPANE.column < (unsigned)getwcols()) {
  21.  
  22.             setvpos(_CURR_WPANE.top + _CURR_WPANE.row + 1,
  23.                 _CURR_WPANE.left + _CURR_WPANE.column + 1);
  24.             if(count > (getwcols() - _CURR_WPANE.column))
  25.                 count = (getwcols() - _CURR_WPANE.column);
  26.             vrepa(color,count);
  27.             _CURR_WPANE.column += count;
  28.         }
  29.         if(_PL_winhead->style & WO_TEXTCURSOR)
  30.             wsynccurs();
  31.     }
  32.  
  33. } /* wrepa */
  34.