summaryrefslogtreecommitdiff
path: root/src/gfx_type.h
diff options
context:
space:
mode:
authorfrosch <frosch@openttd.org>2015-02-22 23:06:45 +0000
committerfrosch <frosch@openttd.org>2015-02-22 23:06:45 +0000
commit352e528cdab81f1903f13260dedb34d1b113b6e8 (patch)
tree138854a4db9517f6455825ad79acdfbac9151d9d /src/gfx_type.h
parentfece468d9678fd11ed5435286dd32353c61b1dcc (diff)
downloadopenttd-352e528cdab81f1903f13260dedb34d1b113b6e8.tar.xz
(svn r27167) -Fix: [SDL, Windows] Right-mouse-button scrolling scrolled/jumped way to far, when OpenTTD lagged during mouse event processing.
Diffstat (limited to 'src/gfx_type.h')
-rw-r--r--src/gfx_type.h6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/gfx_type.h b/src/gfx_type.h
index 0633bdd52..57a7ca324 100644
--- a/src/gfx_type.h
+++ b/src/gfx_type.h
@@ -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. */