X-Git-Url: http://vcs.maemo.org/git/?a=blobdiff_plain;f=platform%2Fsdlv.cpp;fp=platform%2Fsdlv.cpp;h=98964946a54c982214f12f5bbf08483c4a7ae744;hb=4486e487785be514761017cde58a65e67f26ca9b;hp=fe5cfb7b91e1fdd8958dd0f1e69d4865ffb8f4f7;hpb=cf3007f27a437b23bc53c5838451293bef44bbc6;p=drnoksnes diff --git a/platform/sdlv.cpp b/platform/sdlv.cpp index fe5cfb7..9896494 100644 --- a/platform/sdlv.cpp +++ b/platform/sdlv.cpp @@ -207,7 +207,7 @@ void S9xVideoToggleFullscreen() drawOnscreenControls(); } -void processVideoEvent(const SDL_Event& event) +bool videoEventFilter(const SDL_Event& event) { // If we're in power save mode, and this is a defocus event, quit. if (Config.saver) { @@ -215,13 +215,15 @@ void processVideoEvent(const SDL_Event& event) (event.active.state & SDL_APPINPUTFOCUS) && !event.active.gain) { S9xDoAction(kActionQuit); - return; + return true; } } // Forward video event to the active scaler, if any. if (scaler) - scaler->filter(event); + return scaler->filter(event); + else + return false; } // This is here for completeness, but palette mode is mostly useless (slow).