aboutsummaryrefslogtreecommitdiff
path: root/vendor/x11iraf/obm/ObmW/GtermDebug.c
diff options
context:
space:
mode:
authorJoe Hunkeler <jhunkeler@gmail.com>2015-08-11 16:51:37 -0400
committerJoe Hunkeler <jhunkeler@gmail.com>2015-08-11 16:51:37 -0400
commit40e5a5811c6ffce9b0974e93cdd927cbcf60c157 (patch)
tree4464880c571602d54f6ae114729bf62a89518057 /vendor/x11iraf/obm/ObmW/GtermDebug.c
downloadiraf-osx-40e5a5811c6ffce9b0974e93cdd927cbcf60c157.tar.gz
Repatch (from linux) of OSX IRAF
Diffstat (limited to 'vendor/x11iraf/obm/ObmW/GtermDebug.c')
-rw-r--r--vendor/x11iraf/obm/ObmW/GtermDebug.c23
1 files changed, 23 insertions, 0 deletions
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" );
+ }
+}