clear_tty(_mt_window);
InitMenuRes();
+
+ {
+ /* update the window proc has_color table */
+ int i, setting = 0;
+ Rect r;
+// Point p = {0, 0};
+ GDHandle gh = (GDHandle) 0;
+
+ if (_mt_in_color) {
+ GetWindowBounds(_mt_window, kWindowContentRgn, &r);
+// SetPortWindowPort(_mt_window);
+// LocalToGlobal (&p);
+// OffsetRect (&r, p.h, p.v);
+ gh = GetMaxDevice(&r);
+ /* > 4 bpp */
+ setting = ((*((*gh)->gdPMap))->pixelSize > 4) ? 1 : 0;
+ }
+
+ for (i = 0; i < CLR_MAX ; ++i) {
+ tty_procs.has_color[i] =
+ (i == CLR_BLACK || i == NO_COLOR || i == CLR_WHITE)
+ ? 1
+ : (_mt_in_color && gh)
+ ? setting
+ : 0;
+ }
+ }
}
int
(void) tgetch();
}
+#if 0 /* this function is commented out */
+/* the tty has_color[] table is filled in during init above */
int
has_color(int color)
{
return (*((*gh)->gdPMap))->pixelSize > 4; /* > 4 bpp */
}
+#endif
void
tty_delay_output(void)
the condition where this gets used always has the same value */
#define condcolor(bm,bmarray) NO_COLOR
#define term_start_color(color) /*empty*/
-#define term_end_color(color) /*empty*/
+#define term_end_color() /*empty*/
#endif /* TEXTCOLOR */
STATIC_OVL int