DEADSOFTWARE

Holmes UI: events now can be compared with strings
[d2df-sdl.git] / src / game / g_window.pas
index 17aa0479563d2239f9a3db5305b5b44a07fad5f9..226c4550c73fc5c7758048d1c94ab03da677c896 100644 (file)
@@ -475,7 +475,7 @@ begin
         if (msev.but <> 0) then
         begin
           // ev.button.clicks: Byte
-          curMsButState := curMsButState or msev.but;
+          if (ev.type_ = SDL_MOUSEBUTTONDOWN) then curMsButState := curMsButState or msev.but else curMsButState := curMsButState and (not msev.but);
           msev.bstate := curMsButState;
           msev.kstate := curKbState;
           if (g_holmes_enabled) then g_Holmes_mouseEvent(msev);