diff options
author | Alon Zakai <alonzakai@gmail.com> | 2012-03-22 10:40:06 -0700 |
---|---|---|
committer | Alon Zakai <alonzakai@gmail.com> | 2012-03-22 10:40:06 -0700 |
commit | 406c106b0cd88375f5f7f9ccdc9feea6e8f834c6 (patch) | |
tree | 60e909ad39e6183e87b6f7d01518538a9d43defd /emcc | |
parent | 809724a0c49f24d672e17f24fd90bdab9d479586 (diff) |
save the canvas in preloadedImages, and do canvas blits in IMG_Load etc.
Diffstat (limited to 'emcc')
-rwxr-xr-x | emcc | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -899,7 +899,7 @@ try: canvas.height = img.height; var ctx = canvas.getContext('2d'); ctx.drawImage(img, 0, 0); - preloadedImages['%(filename)s'] = ctx.getImageData(0, 0, canvas.width, canvas.height); + preloadedImages['%(filename)s'] = canvas; window.URL.revokeObjectURL(url); removeRunDependency(); }; |