chiark / gitweb /
Fix a crash when changing presets in Inertia. Turns out that my
authorSimon Tatham <anakin@pobox.com>
Sun, 31 Mar 2013 09:58:47 +0000 (09:58 +0000)
committerSimon Tatham <anakin@pobox.com>
Sun, 31 Mar 2013 09:58:47 +0000 (09:58 +0000)
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]

emcclib.js

index 8fb9dd8efa4a7d62c5ab0853909cfff5c90c07cb..6991c51119a0c5fa941e40408acf060331f8b25e 100644 (file)
@@ -463,6 +463,7 @@ mergeInto(LibraryManager.library, {
         blitters[id] = document.createElement("canvas");
         blitters[id].width = w;
         blitters[id].height = h;
+        return id;
     },
 
     /*