Skip to content

Commit

Permalink
OPENGLSDL: Don't cast EventType into int for switch.
Browse files Browse the repository at this point in the history
  • Loading branch information
Johannes Schickel committed Feb 15, 2012
1 parent 1f01fb3 commit 97760ff
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion backends/graphics/openglsdl/openglsdl-graphics.cpp
Expand Up @@ -486,7 +486,7 @@ void OpenGLSdlGraphicsManager::toggleFullScreen(int loop) {
}

bool OpenGLSdlGraphicsManager::notifyEvent(const Common::Event &event) {
switch ((int)event.type) {
switch (event.type) {
case Common::EVENT_KEYDOWN:
if (event.kbd.hasFlags(Common::KBD_ALT)) {
// Alt-Return and Alt-Enter toggle full screen mode
Expand Down

0 comments on commit 97760ff

Please sign in to comment.