aboutsummaryrefslogtreecommitdiff
path: root/emcclib.js
diff options
context:
space:
mode:
authorSimon Tatham <anakin@pobox.com>2013-03-31 09:58:47 +0000
committerSimon Tatham <anakin@pobox.com>2013-03-31 09:58:47 +0000
commit2d2afe9ad4907bd8d802aac68fbf851a64f0c49b (patch)
tree9e2a63f31ea4975fdfaeae8b67443894940e89c4 /emcclib.js
parent3603131ac1875335c1370c2c7f2cb72787b29af8 (diff)
downloadpuzzles-2d2afe9ad4907bd8d802aac68fbf851a64f0c49b.zip
puzzles-2d2afe9ad4907bd8d802aac68fbf851a64f0c49b.tar.gz
puzzles-2d2afe9ad4907bd8d802aac68fbf851a64f0c49b.tar.bz2
puzzles-2d2afe9ad4907bd8d802aac68fbf851a64f0c49b.tar.xz
Fix a crash when changing presets in Inertia. Turns out that my
Javascript-side blitter creation function had forgotten to return the new blitter's id, so the C code was still trying to use blitter #0 after it had been thrown away and replaced. [originally from svn r9790]
Diffstat (limited to 'emcclib.js')
-rw-r--r--emcclib.js1
1 files changed, 1 insertions, 0 deletions
diff --git a/emcclib.js b/emcclib.js
index 8fb9dd8..6991c51 100644
--- a/emcclib.js
+++ b/emcclib.js
@@ -463,6 +463,7 @@ mergeInto(LibraryManager.library, {
blitters[id] = document.createElement("canvas");
blitters[id].width = w;
blitters[id].height = h;
+ return id;
},
/*