From 35e6c3899c100e0b0330ab3942fcacc3d667d663 Mon Sep 17 00:00:00 2001 From: jwalz Date: Sat, 5 Jan 2002 21:05:48 +0000 Subject: [PATCH] *** empty log message *** --- include/mttypriv.h | 58 ++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 58 insertions(+) create mode 100644 include/mttypriv.h diff --git a/include/mttypriv.h b/include/mttypriv.h new file mode 100644 index 000000000..48c6c93ca --- /dev/null +++ b/include/mttypriv.h @@ -0,0 +1,58 @@ +/* SCCS Id: @(#)mttypriv.h 3.3 93/03/01 */ +/* Copyright (c) Jon W{tte 1993. */ +/* NetHack may be freely redistributed. See license for details. */ + +/* + * This file contains private structures used to implement the + * tty windows - note that these structures may change between + * minor releases! + */ + +#ifndef _H_tty_private +# define _H_tty_private + +# ifndef _H_tty_public +#include "mactty.h" +# endif + +#include +#include +#include + +#define TA_TO_RGB(ta,rgb) (((rgb).red=(((ta)>>16)&0xff)*257),((rgb).green=(((ta)>>8)&0xff)*257),\ + ((rgb).blue=((ta)&0xff)*257)),rgb + +typedef struct tty_record { + WindowPtr its_window ; + + short font_number ; + short font_size ; + short char_width ; + short row_height ; + short ascent_height ; + + short x_size ; + short y_size ; + short x_curs ; + short y_curs ; + + GWorldPtr its_window_world ; + BitMap its_bits ; + GrafPtr offscreen_port ; + GWorldPtr offscreen_world ; +#if CLIP_RECT_ONLY + Rect invalid_rect ; +#else + RgnHandle invalid_part ; +#endif + + long attribute [ TTY_NUMBER_ATTRIBUTES ] ; + long last_cursor ; + + Boolean was_allocated ; + Boolean curs_state ; + Boolean uses_gworld ; +} tty_record ; + + +#endif /* _H_tty_private */