aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/library.js2
-rw-r--r--src/library_sdl.js1
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];