From: Simon Tatham Date: Sun, 31 Mar 2013 09:58:47 +0000 (+0000) Subject: Fix a crash when changing presets in Inertia. Turns out that my X-Git-Url: https://www.chiark.greenend.org.uk/ucgi/~ian/git?a=commitdiff_plain;h=2d2afe9ad4907bd8d802aac68fbf851a64f0c49b;p=sgt-puzzles.git 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] --- 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; }, /*