chiark
/
gitweb
/
~ian
/
sgt-puzzles.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
3603131
)
Fix a crash when changing presets in Inertia. Turns out that my
author
Simon Tatham
<anakin@pobox.com>
Sun, 31 Mar 2013 09:58:47 +0000
(09:58 +0000)
committer
Simon 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
patch
|
blob
|
history
diff --git
a/emcclib.js
b/emcclib.js
index 8fb9dd8efa4a7d62c5ab0853909cfff5c90c07cb..6991c51119a0c5fa941e40408acf060331f8b25e 100644
(file)
--- 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;
},
/*