aboutsummaryrefslogtreecommitdiff
path: root/src/library_sdl.js
diff options
context:
space:
mode:
authorJez Ng <me@jezng.com>2013-07-10 15:38:26 -0700
committerJez Ng <me@jezng.com>2013-07-10 15:38:26 -0700
commitd0bd6cc8c29492a3be79c02239bb09e644f674f6 (patch)
treeaec501fc19fbd532227ed2a8375918b62bcac68c /src/library_sdl.js
parent827d8314b1ecab7e2ea5d171521c505928c55202 (diff)
Add comment.
Diffstat (limited to 'src/library_sdl.js')
-rw-r--r--src/library_sdl.js3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/library_sdl.js b/src/library_sdl.js
index de644aac..646aa54c 100644
--- a/src/library_sdl.js
+++ b/src/library_sdl.js
@@ -1066,6 +1066,9 @@ var LibrarySDL = {
},
SDL_SetColorKey: function(surf, flag, key) {
+ // SetColorKey assigns one color to be rendered as transparent. I don't
+ // think the canvas API allows for anything like this, and iterating through
+ // each pixel to replace that color seems prohibitively expensive.
Runtime.warnOnce('SDL_SetColorKey is a no-op for performance reasons');
return 0;
},