hlfw.ca

x9dev

Download patch

ref: a42a05b8d6aa8d00bb2059abaaeb92ddd7468b66
parent: 79bd2f7815bd64c287ffea2f0513bf67869be5bd
author: halfwit <michaelmisch1985@gmail.com>
date: Thu Oct 15 09:33:18 PDT 2020

Fix a few more issues

--- a/libdraw/window.c
+++ b/libdraw/window.c
@@ -1,4 +1,7 @@
 #include <stdlib.h>
+#include <sys/types.h>
+#include <unistd.h>
+#include <assert.h>
 #include "draw.h"
 
 typedef struct Memimage Memimage;
@@ -15,7 +18,6 @@
 
 	d = image->display;
 	if(d != fill->display){
-		werrstr("allocscreen: image and fill on different displays");
 		return nil;
 	}
 	s = malloc(sizeof(Screen));
@@ -136,7 +138,7 @@
 
 	if(n < 0){
     Ridiculous:
-		fprint(2, "top/bottom: ridiculous number of windows\n");
+		fprintf(2, "top/bottom: ridiculous number of windows\n");
 		return;
 	}
 	if(n == 0)
@@ -152,7 +154,7 @@
 	d = w[0]->display;
 	for(i=1; i<n; i++)
 		if(w[i]->display != d){
-			fprint(2, "top/bottom: windows not on same screen\n");
+			fprintf(2, "top/bottom: windows not on same screen\n");
 			return;
 		}