ref: 3d581e8b72e70182c68bfcf0fef7ca0ccf371082
parent: 4cf627a131bb343f2ca0c252658186bcd68dfc5a
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);
}
--
⑨