summaryrefslogtreecommitdiff
path: root/src/video/sdl2_v.cpp
diff options
context:
space:
mode:
authorSamuXarick <43006711+SamuXarick@users.noreply.github.com>2021-02-05 10:00:36 +0000
committerGitHub <noreply@github.com>2021-02-05 11:00:36 +0100
commita4035af3375825ae277f1363c5d814ee55b92d7c (patch)
tree7622810853ec1810ca8c5842ba7d93cf770a439c /src/video/sdl2_v.cpp
parent5b3fe4ae2741ef014b1a41a21c146d56c7408d6e (diff)
downloadopenttd-a4035af3375825ae277f1363c5d814ee55b92d7c.tar.xz
Codechange: Apply coding style (#8640)
* Fix: Missing or needed spaces * Codechange: Remove space * Codechange: Remove space * Codechange: More missing spaces * Codechange: Missing spaces * Codechange: Remove space * Codechange: Remove space
Diffstat (limited to 'src/video/sdl2_v.cpp')
-rw-r--r--src/video/sdl2_v.cpp10
1 files changed, 5 insertions, 5 deletions
diff --git a/src/video/sdl2_v.cpp b/src/video/sdl2_v.cpp
index aa7a23c72..66e6586fd 100644
--- a/src/video/sdl2_v.cpp
+++ b/src/video/sdl2_v.cpp
@@ -524,7 +524,7 @@ static uint ConvertSdlKeycodeIntoMy(SDL_Keycode kc)
}
/* check scancode for BACKQUOTE key, because we want the key left
- of "1", not anything else (on non-US keyboards) */
+ * of "1", not anything else (on non-US keyboards) */
SDL_Scancode sc = SDL_GetScancodeFromKey(kc);
if (sc == SDL_SCANCODE_GRAVE) key = WKC_BACKQUOTE;
@@ -542,10 +542,10 @@ int VideoDriver_SDL::PollEvent()
#ifdef __EMSCRIPTEN__
if (_cursor_new_in_window) {
/* The cursor just moved into the window; this means we don't
- * know the absolutely position yet to move relative from.
- * Before this time, SDL didn't know it either, and this is
- * why we postpone it till now. Update the absolute position
- * for this once, and work relative after. */
+ * know the absolutely position yet to move relative from.
+ * Before this time, SDL didn't know it either, and this is
+ * why we postpone it till now. Update the absolute position
+ * for this once, and work relative after. */
_cursor.pos.x = ev.motion.x;
_cursor.pos.y = ev.motion.y;
_cursor.dirty = true;