Fix resize error under KDE (Bart Locanthi)
diff --git a/src/cmd/devdraw/devdraw.c b/src/cmd/devdraw/devdraw.c
index 6b6dca6..0e2226c 100644
--- a/src/cmd/devdraw/devdraw.c
+++ b/src/cmd/devdraw/devdraw.c
@@ -275,7 +275,7 @@
}
/* how can this happen? -rsc, dec 12 2002 */
if(dst == 0){
- print("nil dstflush\n");
+ fprint(2, "nil dstflush\n");
return;
}
l = dst->layer;
@@ -430,7 +430,7 @@
c = mallocz(sizeof(CScreen), 1);
if(dimage && dimage->image && dimage->image->chan == 0){
- print("bad image %p in drawinstallscreen", dimage->image);
+ fprint(2, "bad image %p in drawinstallscreen", dimage->image);
abort();
}
@@ -494,7 +494,7 @@
this->ref--;
if(this->ref < 0)
- print("negative ref in drawfreedscreen\n");
+ fprint(2, "negative ref in drawfreedscreen\n");
if(this->ref > 0)
return;
ds = dscreen;
@@ -533,7 +533,7 @@
dimage->ref--;
if(dimage->ref < 0)
- print("negative ref in drawfreedimage\n");
+ fprint(2, "negative ref in drawfreedimage\n");
if(dimage->ref > 0)
return;