diff options
author | Felix H. Dahlke <fhd@ubercode.de> | 2013-10-03 00:41:06 +0200 |
---|---|---|
committer | Felix H. Dahlke <fhd@ubercode.de> | 2013-10-03 00:41:06 +0200 |
commit | 52b1563748c64e59ed47b58b3d76d720cfe382d8 (patch) | |
tree | 14a07c76d7074257368982eb368ed98693f733f9 /src/library_sdl.js | |
parent | 05b6aa32a5f1633797f7eae390b3a8048b29ca69 (diff) |
Make SDL_rotozoomSurface rotate into the correct direction
Diffstat (limited to 'src/library_sdl.js')
-rw-r--r-- | src/library_sdl.js | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/library_sdl.js b/src/library_sdl.js index 116bf547..674de7bf 100644 --- a/src/library_sdl.js +++ b/src/library_sdl.js @@ -1196,7 +1196,7 @@ var LibrarySDL = { var ret = SDL.makeSurface(diagonal, diagonal, srcData.flags, false, 'rotozoomSurface'); var dstData = SDL.surfaces[ret]; dstData.ctx.translate(diagonal / 2, diagonal / 2); - dstData.ctx.rotate(angle * Math.PI / 180); + dstData.ctx.rotate(-angle * Math.PI / 180); dstData.ctx.drawImage(srcData.canvas, -w / 2, -h / 2, w, h); return ret; }, |