Author: brunowolff
Date: Fri Mar 21 20:30:14 2008
New Revision: 24952

URL: http://svn.gna.org/viewcvs/wesnoth?rev=24952&view=rev
Log:
Backport r24874

Modified:
    branches/1.4/src/mouse_events.cpp

Modified: branches/1.4/src/mouse_events.cpp
URL: 
http://svn.gna.org/viewcvs/wesnoth/branches/1.4/src/mouse_events.cpp?rev=24952&r1=24951&r2=24952&view=diff
==============================================================================
--- branches/1.4/src/mouse_events.cpp (original)
+++ branches/1.4/src/mouse_events.cpp Fri Mar 21 20:30:14 2008
@@ -758,7 +758,7 @@
        // While we check the mouse buttons state, we also grab fresh position 
data.
        int mx = drag_from_x_; // some default value to prevent unlikely SDL bug
        int my = drag_from_y_;
-       if (dragging_ && !dragging_started_ && (SDL_GetMouseState(&mx,&my) & 
SDL_BUTTON_LEFT != 0)) {
+       if (dragging_ && !dragging_started_ && ((SDL_GetMouseState(&mx,&my) & 
SDL_BUTTON_LEFT) != 0)) {
                const double drag_distance = std::pow((double) (drag_from_x_- 
mx), 2) + std::pow((double) (drag_from_y_- my), 2);
                if (drag_distance > drag_threshold*drag_threshold) {
                        dragging_started_ = true;


_______________________________________________
Wesnoth-commits mailing list
[email protected]
https://mail.gna.org/listinfo/wesnoth-commits

Reply via email to