Changeset - r14366:4312f3d8c856
[Not reviewed]
master
0 1 0
peter1138 - 14 years ago 2010-01-28 02:31:37
peter1138@openttd.org
(svn r18933) -Codechange: Don't constantly redraw a window when moving it unless it actually moves.
1 file changed with 3 insertions and 0 deletions:
0 comments (0 inline, 0 general)
src/window.cpp
Show inline comments
 
@@ -1513,6 +1513,9 @@ static bool HandleWindowDragging()
 
	/* Get out immediately if no window is being dragged at all. */
 
	if (!_dragging_window) return true;
 

	
 
	/* If button still down, but cursor hasn't moved, there is nothing to do. */
 
	if (_left_button_down && _cursor.delta.x == 0 && _cursor.delta.y == 0) return false;
 

	
 
	/* Otherwise find the window... */
 
	Window *w;
 
	FOR_ALL_WINDOWS_FROM_BACK(w) {
0 comments (0 inline, 0 general)