[Scummvm-git-logs] scummvm master -> e40cdea6ba495abf76aa55d61186bd52c53c82bf
ccawley2011
ccawley2011 at gmail.com
Tue Apr 2 23:41:24 CEST 2019
This automated email contains information about 1 new commit which have been
pushed to the 'scummvm' repo located at https://github.com/scummvm/scummvm .
Summary:
e40cdea6ba SDL: Use Common::KEYCODE_KP_ENTER instead of SDLK_KP_ENTER
Commit: e40cdea6ba495abf76aa55d61186bd52c53c82bf
https://github.com/scummvm/scummvm/commit/e40cdea6ba495abf76aa55d61186bd52c53c82bf
Author: Cameron Cawley (ccawley2011 at gmail.com)
Date: 2019-04-02T22:41:21+01:00
Commit Message:
SDL: Use Common::KEYCODE_KP_ENTER instead of SDLK_KP_ENTER
Changed paths:
backends/graphics/sdl/sdl-graphics.cpp
diff --git a/backends/graphics/sdl/sdl-graphics.cpp b/backends/graphics/sdl/sdl-graphics.cpp
index cf81e04..a9902cf 100644
--- a/backends/graphics/sdl/sdl-graphics.cpp
+++ b/backends/graphics/sdl/sdl-graphics.cpp
@@ -313,7 +313,7 @@ bool SdlGraphicsManager::notifyEvent(const Common::Event &event) {
// Alt-Return and Alt-Enter toggle full screen mode
if (event.kbd.hasFlags(Common::KBD_ALT) &&
(event.kbd.keycode == Common::KEYCODE_RETURN ||
- event.kbd.keycode == (Common::KeyCode)SDLK_KP_ENTER)) {
+ event.kbd.keycode == Common::KEYCODE_KP_ENTER)) {
toggleFullScreen();
return true;
}
@@ -329,7 +329,7 @@ bool SdlGraphicsManager::notifyEvent(const Common::Event &event) {
case Common::EVENT_KEYUP:
if (event.kbd.hasFlags(Common::KBD_ALT)) {
return event.kbd.keycode == Common::KEYCODE_RETURN
- || event.kbd.keycode == (Common::KeyCode)SDLK_KP_ENTER
+ || event.kbd.keycode == Common::KEYCODE_KP_ENTER
|| event.kbd.keycode == Common::KEYCODE_s;
}
More information about the Scummvm-git-logs
mailing list