diff options
author | Alon Zakai <alonzakai@gmail.com> | 2011-05-22 13:38:23 -0700 |
---|---|---|
committer | Alon Zakai <alonzakai@gmail.com> | 2011-05-22 13:38:23 -0700 |
commit | 835af26449f2d17dec47adee4bcd3d7873481b66 (patch) | |
tree | 7242cea3099a11060ea2166286d98e5a56058b3a | |
parent | 070914c7e6fde65a2411128c6f0dad25e8e6fd33 (diff) |
CHECK_SIGNS fix
-rw-r--r-- | src/library.js | 2 | ||||
-rw-r--r-- | src/library_sdl.js | 1 |
2 files changed, 2 insertions, 1 deletions
diff --git a/src/library.js b/src/library.js index ebcd4bdc..6d4f048f 100644 --- a/src/library.js +++ b/src/library.js @@ -1302,7 +1302,7 @@ function reSign(value, bits, ignore) { // without CHECK_SIGNS, we would just do the |0 shortcut, so check that that // would indeed give the exact same result. if (bits === 32 && (value|0) !== value && typeof value !== 'boolean') { - CorrectionsMonitor.note('ReSign'); + if (!ignore) CorrectionsMonitor.note('ReSign'); } #endif return value; diff --git a/src/library_sdl.js b/src/library_sdl.js index caf34c58..ef030e95 100644 --- a/src/library_sdl.js +++ b/src/library_sdl.js @@ -204,6 +204,7 @@ mergeInto(Library, { var base = y*width*4; for (var x = 0; x < width; x++) { var val = IHEAP[s++]; + //var val = unSign(IHEAP[s++], 8, 1); // XXX Optimize var color = surfData.colors[val]; surfData.image.data[base+x*4+0] = color[0]; surfData.image.data[base+x*4+1] = color[1]; |