(svn r27167) -Fix: [SDL, Windows] Right-mouse-button scrolling scrolled/jumped way to far, when OpenTTD lagged during mouse event processing.

This commit is contained in:
frosch
2015-02-22 23:06:45 +00:00
parent fece468d96
commit 352e528cda
6 changed files with 65 additions and 64 deletions

View File

@@ -138,6 +138,12 @@ struct CursorVars {
bool in_window; ///< mouse inside this window, determines drawing logic
bool vehchain; ///< vehicle chain is dragged
bool UpdateCursorPosition(int x, int y, bool queued_warp);
private:
bool queued_warp;
Point last_position;
};
/** Data about how and where to blit pixels. */