diff options
-rw-r--r-- | src/library_sdl.js | 3 |
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; }, |