page: 12 zoom levels should be enougth

making zoom too big just causes pagesize() multiplication to overflow
passing bogus rectangles to allocimage().
This commit is contained in:
cinap_lenrek 2013-06-15 21:09:27 +02:00
parent 4cf627a131
commit 3d581e8b72

View file

@ -1360,7 +1360,7 @@ docmd(int i, Mouse *m)
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);
}