diff options
author | Andrei Karas <akaras@inbox.ru> | 2014-01-28 16:14:15 +0300 |
---|---|---|
committer | Andrei Karas <akaras@inbox.ru> | 2014-01-28 16:14:15 +0300 |
commit | 226202ff807dc860991af0d6665ef9e9b48c1bed (patch) | |
tree | de0be738585f3ab2556865c206981d2d2842ac69 /src/actionmanager.cpp | |
parent | eb62e14c838788ae7691567a90bf7fe4940d5687 (diff) | |
download | mv-226202ff807dc860991af0d6665ef9e9b48c1bed.tar.gz mv-226202ff807dc860991af0d6665ef9e9b48c1bed.tar.bz2 mv-226202ff807dc860991af0d6665ef9e9b48c1bed.tar.xz mv-226202ff807dc860991af0d6665ef9e9b48c1bed.zip |
Move direct SDL_GetMouseState calls into method in gui class.
Diffstat (limited to 'src/actionmanager.cpp')
-rw-r--r-- | src/actionmanager.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/actionmanager.cpp b/src/actionmanager.cpp index cc04e60a1..878b5ab07 100644 --- a/src/actionmanager.cpp +++ b/src/actionmanager.cpp @@ -211,11 +211,11 @@ impHandler(outfit) impHandler0(mouseClick) { - if (!guiInput) + if (!guiInput || !gui) return false; int mouseX, mouseY; - SDL_GetMouseState(&mouseX, &mouseY); + gui->getMouseState(&mouseX, &mouseY); guiInput->simulateMouseClick(mouseX, mouseY, gcn::MouseEvent::RIGHT); return true; } |