1 /* NetHack 3.6 mttypriv.h $NHDT-Date: 1432512780 2015/05/25 00:13:00 $ $NHDT-Branch: master $:$NHDT-Revision: 1.9 $ */
2 /* Copyright (c) Jon W{tte 1993. */
3 /* NetHack may be freely redistributed. See license for details. */
6 * This file contains private structures used to implement the
7 * tty windows - note that these structures may change between
11 #ifndef _H_tty_private
12 #define _H_tty_private
18 #if !TARGET_API_MAC_CARBON
19 #include <QDOffscreen.h>
24 #define TA_TO_RGB(ta, rgb) \
25 (((rgb).red = (((ta) >> 16) & 0xff) * 257), \
26 ((rgb).green = (((ta) >> 8) & 0xff) * 257), \
27 ((rgb).blue = ((ta) &0xff) * 257)), \
30 typedef struct tty_record
{
44 GWorldPtr its_window_world
;
46 GrafPtr offscreen_port
;
47 GWorldPtr offscreen_world
;
51 RgnHandle invalid_part
;
54 long attribute
[TTY_NUMBER_ATTRIBUTES
];
57 Boolean was_allocated
;
62 #endif /* _H_tty_private */