XWorkstation.st
changeset 3468 b7e913629327
parent 3467 66a720085cd7
child 3478 b9d198097d10
--- a/XWorkstation.st	Fri Aug 17 14:45:36 2001 +0200
+++ b/XWorkstation.st	Tue Aug 21 11:27:53 2001 +0200
@@ -219,7 +219,9 @@
 static unsigned INT lastResource = 0;
 
 static int __debug__ = 0;
+
 #define DPRINTF(x)      if (__debug__) { printf x; }
+
 %}
 ! !
 
@@ -512,7 +514,7 @@
 debugResources
 %{
 #ifdef COUNT_RESOURCES
-    printf("colors:%d bitmaps:%d views:%d gc:%d cursors:%d fonts:%d\n",
+    fprintf(stderr, "colors:%d bitmaps:%d views:%d gc:%d cursors:%d fonts:%d\n",
 	    __cnt_color, __cnt_bitmap,
 	    __cnt_view, __cnt_gc, __cnt_cursor, __cnt_font);
 #endif
@@ -1978,7 +1980,7 @@
 	if (XMatchVisualInfo(dpy, screen, depth, cls, &vi)) {
 	    visual.visualid = vi.visualid;
 /*
-	    printf("visualId=%x\n", vi.visualid);
+	    fprintf(stderr, "visualId=%x\n", vi.visualid);
 */
 	}
 	LEAVE_XLIB();
@@ -10231,7 +10233,7 @@
 
 	    default:
 		/* unsupported depth ? */
-		printf("possibly unsupported depth:%d in primGetBits\n", image->depth);
+		fprintf(stderr, "possibly unsupported depth:%d in primGetBits\n", image->depth);
 		numBytes = image->bytes_per_line * image->height;
 		break;
 	}
@@ -11574,6 +11576,6 @@
 !XWorkstation class methodsFor:'documentation'!
 
 version
-    ^ '$Header: /cvs/stx/stx/libview/XWorkstation.st,v 1.394 2001-08-17 12:45:36 cg Exp $'
+    ^ '$Header: /cvs/stx/stx/libview/XWorkstation.st,v 1.395 2001-08-21 09:27:52 cg Exp $'
 ! !
 XWorkstation initialize!