Changeset - r9412:d3e87d714ab7
[Not reviewed]
master
0 2 0
peter1138 - 16 years ago 2008-05-29 11:47:56
peter1138@openttd.org
(svn r13323) -Codechange: scrollbars are not refresh counters
2 files changed with 4 insertions and 3 deletions:
0 comments (0 inline, 0 general)
src/player_gui.cpp
Show inline comments
 
@@ -1304,10 +1304,10 @@ struct PlayerCompanyWindow : Window
 
		}
 
	}
 

	
 
	virtual void OnTick()
 
	virtual void OnHundredthTick()
 
	{
 
		/* redraw the window every now and then */
 
		if ((++this->vscroll.pos & 0x1F) == 0) this->SetDirty();
 
		this->SetDirty();
 
	}
 

	
 
	virtual void OnPlaceObject(Point pt, TileIndex tile)
src/smallmap_gui.cpp
Show inline comments
 
@@ -574,6 +574,7 @@ class SmallMapWindow : public Window
 
	int32 scroll_x;
 
	int32 scroll_y;
 
	int32 subscroll;
 
	uint8 refresh;
 

	
 
public:
 
	/**
 
@@ -1019,7 +1020,7 @@ public:
 
	virtual void OnTick()
 
	{
 
		/* update the window every now and then */
 
		if ((++this->vscroll.pos & 0x1F) == 0) this->SetDirty();
 
		if ((++this->refresh & 0x1F) == 0) this->SetDirty();
 
	}
 

	
 
	virtual void OnScroll(Point delta)
0 comments (0 inline, 0 general)