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,9 +677,11 @@ main(int argc, char *argv[])
|
||||||
center();
|
center();
|
||||||
break;
|
break;
|
||||||
case '+':
|
case '+':
|
||||||
|
if(zoom < 0x1000)
|
||||||
setzoom(e.mouse.xy, zoom*2);
|
setzoom(e.mouse.xy, zoom*2);
|
||||||
break;
|
break;
|
||||||
case '-':
|
case '-':
|
||||||
|
if(zoom > 1)
|
||||||
setzoom(e.mouse.xy, zoom/2);
|
setzoom(e.mouse.xy, zoom/2);
|
||||||
break;
|
break;
|
||||||
case 'c':
|
case 'c':
|
||||||
|
|
Loading…
Reference in a new issue