aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAlon Zakai <alonzakai@gmail.com>2013-03-20 07:41:56 -0700
committerAlon Zakai <alonzakai@gmail.com>2013-03-20 07:41:56 -0700
commitcc8858d0e0aaa3dbfd24a9c900db8746a23d6353 (patch)
tree962c22723c383f8f95915e77f471a10194740ed7
parent3fba6c78b06e17446270a882c919cd39f0312ebe (diff)
fix indentation
-rw-r--r--src/library_sdl.js14
1 files changed, 7 insertions, 7 deletions
diff --git a/src/library_sdl.js b/src/library_sdl.js
index 4e44e1d5..42207f23 100644
--- a/src/library_sdl.js
+++ b/src/library_sdl.js
@@ -528,13 +528,13 @@ var LibrarySDL = {
var x = event.pageX - (window.scrollX + rect.left);
var y = event.pageY - (window.scrollY + rect.top);
- // the canvas might be CSS-scaled compared to its backbuffer;
- // SDL-using content will want mouse coordinates in terms
- // of backbuffer units.
- var cw = Module["canvas"].width;
- var ch = Module["canvas"].height;
- x = x * (cw / rect.width);
- y = y * (ch / rect.height);
+ // the canvas might be CSS-scaled compared to its backbuffer;
+ // SDL-using content will want mouse coordinates in terms
+ // of backbuffer units.
+ var cw = Module["canvas"].width;
+ var ch = Module["canvas"].height;
+ x = x * (cw / rect.width);
+ y = y * (ch / rect.height);
var movementX = x - SDL.mouseX;
var movementY = y - SDL.mouseY;