paint: limit zoom to 12 steps
This commit is contained in:
parent
0d1801902d
commit
389f457505
1 changed files with 4 additions and 2 deletions
|
@ -677,10 +677,12 @@ main(int argc, char *argv[])
|
|||
center();
|
||||
break;
|
||||
case '+':
|
||||
setzoom(e.mouse.xy, zoom*2);
|
||||
if(zoom < 0x1000)
|
||||
setzoom(e.mouse.xy, zoom*2);
|
||||
break;
|
||||
case '-':
|
||||
setzoom(e.mouse.xy, zoom/2);
|
||||
if(zoom > 1)
|
||||
setzoom(e.mouse.xy, zoom/2);
|
||||
break;
|
||||
case 'c':
|
||||
if(canvas == nil)
|
||||
|
|
Loading…
Reference in a new issue