[bug]fixup chip layout visibility control

This commit is contained in:
BigEd 2010-10-09 13:43:47 +00:00
parent 66d42665a9
commit 3258a24c91
2 changed files with 3 additions and 3 deletions

View File

@ -54,7 +54,6 @@ var drawlayers = [true, true, true, true, true, true];
var moveHereFirst;
var expertMode=false
var animateChipLayout = true;
var chipLayoutIsVisible = true;
var userCode=[];
var userResetLow;
var userResetHigh;
@ -338,4 +337,3 @@ function setChipStyle(props){
hitbuffer.style[i] = props[i];
}
}

View File

@ -28,6 +28,8 @@ var nodenamelist=[];
var ngnd = nodenames['vss'];
var npwr = nodenames['vcc'];
var chipLayoutIsVisible = true; // only modified in expert mode
function setupNodes(){
for(var i in segdefs){
var seg = segdefs[i];
@ -130,7 +132,7 @@ function hexdigit(n){return '0123456789ABCDEF'.charAt(n);}
/////////////////////////
function refresh(){
if(typeof chipLayoutIsVisible == undefined || !chipLayoutIsVisible) return;
if(!chipLayoutIsVisible) return;
ctx.clearRect(0,0,grCanvasSize,grCanvasSize);
for(i in nodes){
if(isNodeHigh(i)) overlayNode(nodes[i].segs);