From 40e5a5811c6ffce9b0974e93cdd927cbcf60c157 Mon Sep 17 00:00:00 2001 From: Joe Hunkeler Date: Tue, 11 Aug 2015 16:51:37 -0400 Subject: Repatch (from linux) of OSX IRAF --- vendor/x11iraf/obm/ObmW/GtermDebug.c | 23 +++++++++++++++++++++++ 1 file changed, 23 insertions(+) create mode 100644 vendor/x11iraf/obm/ObmW/GtermDebug.c (limited to 'vendor/x11iraf/obm/ObmW/GtermDebug.c') diff --git a/vendor/x11iraf/obm/ObmW/GtermDebug.c b/vendor/x11iraf/obm/ObmW/GtermDebug.c new file mode 100644 index 00000000..710cb6af --- /dev/null +++ b/vendor/x11iraf/obm/ObmW/GtermDebug.c @@ -0,0 +1,23 @@ + + +static char *dbg_wSize (GtermWidget w) +{ + static char b[32]; + + bzero (b, 32); + sprintf (b, "%dx%dx%d", w->core.width, w->core.height, w->core.depth); + return (b); +} + + +static char *dbg_visStr (int class) +{ + switch (class) { + case StaticGray: return ( "StaticGray" ); + case StaticColor: return ( "StaticColor" ); + case GrayScale: return ( "GrayScale" ); + case PseudoColor: return ( "PseudoColor" ); + case TrueColor: return ( "TrueColor" ); + default: return ( "unknown" ); + } +} -- cgit