shithub: puzzles

Download patch

ref: 2d2afe9ad4907bd8d802aac68fbf851a64f0c49b
parent: 3603131ac1875335c1370c2c7f2cb72787b29af8
author: Simon Tatham <anakin@pobox.com>
date: Sun Mar 31 05:58:47 EDT 2013

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]

--- a/emcclib.js
+++ b/emcclib.js
@@ -463,6 +463,7 @@
         blitters[id] = document.createElement("canvas");
         blitters[id].width = w;
         blitters[id].height = h;
+        return id;
     },
 
     /*