shithub: qk1

Download patch

ref: 120cbddefb31ed3ac9d159f32300e15c13837665
parent: 7a252eea673a83b82783aac3d3bcc53193c470cf
author: Konstantinn Bonnet <qu7uux@gmail.com>
date: Sat Sep 5 11:06:12 EDT 2015

reduce max resolution to 2048x2048

4096x4096 is ridiculous on plan9, and this probably should be
reduced even further.

--- a/README
+++ b/README
@@ -59,7 +59,7 @@
 - pr_strings assumed 32bit pointer arithmetic, so enter PR_GetStr(), which
   completely sucks
 - text and code seen as useless for plan9 nuked from orbit (cpp defs, etc.)
-- arbitrary resolution limit (r_shared.h): 4096x4096 (was 1280x1024), which
+- arbitrary resolution limit (r_shared.h): 2048x2048 (was 1280x1024), which
   inflates e.g. a bunch of arrays in the code
 - mouse handling is too heavy, all for the purpose of not letting the mouse
   escape the window too easily (and the kludged up shit could probably be
--- a/r_shared.h
+++ b/r_shared.h
@@ -7,8 +7,8 @@
 #define MAXWORKINGVERTS	(MAXVERTS+4)	// max points in an intermediate
 										//  polygon (while processing)
 // !!! if this is changed, it must be changed in d_ifacea.h too !!!
-#define	MAXHEIGHT		4096
-#define	MAXWIDTH		4096
+#define	MAXHEIGHT		2048
+#define	MAXWIDTH		2048
 #define MAXDIMENSION	((MAXHEIGHT > MAXWIDTH) ? MAXHEIGHT : MAXWIDTH)
 
 #define SIN_BUFFER_SIZE	(MAXDIMENSION+CYCLE)