home *** CD-ROM | disk | FTP | other *** search
/ OS/2 Shareware BBS: 5 Edit / 05-Edit.zip / vile-src.zip / vile-8.1 / pscreen.h < prev    next >
C/C++ Source or Header  |  1997-09-23  |  740b  |  21 lines

  1. /* The following set of definitions comprise the interface to pscreen
  2.  * in display.c.
  3.  */
  4.  
  5. #ifndef PSCREEN_H
  6. #define PSCREEN_H 1
  7.  
  8. extern VIDEO **pscreen;
  9.  
  10. #define IS_DIRTY_LINE(r)    (pscreen[(r)]->v_flag & VFCHG)
  11. #define IS_DIRTY(r,c)        (pscreen[(r)]->v_attrs[(c)] & VADIRTY)
  12. #define IS_REVERSED(r,c)    ((pscreen[(r)]->v_attrs[(c)] & (VAREV|VASEL)) != 0)
  13. #define MARK_LINE_DIRTY(r)    (pscreen[(r)]->v_flag |= VFCHG)
  14. #define MARK_CELL_DIRTY(r,c)    (pscreen[(r)]->v_attrs[(c)] |= VADIRTY)
  15. #define CLEAR_LINE_DIRTY(r)    (pscreen[(r)]->v_flag &= ~VFCHG)
  16. #define CLEAR_CELL_DIRTY(r,c)    (pscreen[(r)]->v_attrs[(c)] &= ~VADIRTY)
  17. #define CELL_TEXT(r,c)        (pscreen[(r)]->v_text[(c)])
  18. #define CELL_ATTR(r,c)        (pscreen[(r)]->v_attrs[(c)])
  19.  
  20. #endif /* PSCREEN_H */
  21.