aboutsummaryrefslogtreecommitdiff
path: root/vendor/x11iraf/obm/ObmW/GtermDebug.c
diff options
context:
space:
mode:
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" );
+ }
+}