From c5e2bfd65750909a6612649974077cc844ffa9a3 Mon Sep 17 00:00:00 2001 From: BigEd Date: Mon, 4 Oct 2010 11:12:07 +0000 Subject: [PATCH] [bug]use the grMaxZoom constant as intended --- wires.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/wires.js b/wires.js index 84a2cda..8d58ba1 100644 --- a/wires.js +++ b/wires.js @@ -40,7 +40,7 @@ var statbox; // the point of drawing line segments // if the canvas is any smaller than chip coordinates there will be // rounding artifacts, and at high zoom there will be anti-aliasing on edges. -var grMaxZoom=16; +var grMaxZoom=12; var grChipSize=10000; var grCanvasSize=2000; var grLineWidth=1; @@ -315,7 +315,7 @@ function handleKey(e){ c = String.fromCharCode(c); if('<>?np'.indexOf(c)==-1) return; if(c=='<' && zoom>1) setZoom(zoom/1.2); - else if(c=='>' && zoom<12) setZoom(zoom*1.2); + else if(c=='>' && zoom