git: 9front

Download patch

ref: be594494795ae930091d3566f9166479504b1884
parent: e50d910806e298b5bf25fb7033095fd05faf574b
author: cinap_lenrek <cinap_lenrek@gmx.de>
date: Sat Jun 15 17:09:27 EDT 2013

page: 12 zoom levels should be enougth

making zoom too big just causes pagesize() multiplication to overflow
passing bogus rectangles to allocimage().

--- a/sys/src/cmd/page.c
+++ b/sys/src/cmd/page.c
@@ -1360,7 +1360,7 @@
 			break;
 		o = subpt(m->xy, screen->r.min);
 		if(i == Czoomin){
-			if(zoom < 0x40000000){
+			if(zoom < 0x1000){
 				zoom *= 2;
 				pos =  addpt(mulpt(subpt(pos, o), 2), o);
 			}
--