home *** CD-ROM | disk | FTP | other *** search
/ No Fragments Archive 12: Textmags & Docs / nf_archive_12.iso / MAGS / SOURCES / ATARI_SRC.ZIP / atari source / AHDI / TTFHDX / SCROLL.H < prev    next >
Encoding:
C/C++ Source or Header  |  2001-02-09  |  696 b   |  18 lines

  1. /*  SCROLL.H
  2. /*    2-May-88    ml.    for use in bslscrol.c and defscol.c    */
  3.  
  4. #define LWGET(x)    ((int) *((int *)(x)))
  5. #define LWSET(x, y)    (*((int *)(x)) = y)
  6. #define LLGET(x)    (*((long *)(x)))
  7. #define LLSET(x, y)    (*((long *)(x)) = y)
  8.  
  9. #define OB_STATE(tree, x)    ((long)tree + (x) * sizeof(OBJECT) + 10)
  10. #define OB_SPEC(tree, x)    ((long)tree + (x) * sizeof(OBJECT) + 12)
  11. #define OB_X(tree, x)        ((long)tree + (x) * sizeof(OBJECT) + 16)
  12. #define OB_Y(tree, x)        ((long)tree + (x) * sizeof(OBJECT) + 18)
  13. #define OB_WIDTH(tree, x)    ((long)tree + (x) * sizeof(OBJECT) + 20)
  14. #define OB_HEIGHT(tree, x)    ((long)tree + (x) * sizeof(OBJECT) + 22)
  15.  
  16. #define NM_ITEMS  8    /* number of items to be scrolled */
  17.  
  18.