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:
parent
4cf627a131
commit
3d581e8b72
|
@ -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);
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue