Changeset - r8053:25084e2906e0
[Not reviewed]
master
0 1 0
skidd13 - 16 years ago 2007-12-09 22:14:41
skidd13@openttd.org
(svn r11614) -Fix: The about dialog scrolling was connected to the mouse instead of the internal ticks
1 file changed with 4 insertions and 3 deletions:
0 comments (0 inline, 0 general)
src/misc_gui.cpp
Show inline comments
 
@@ -256,7 +256,7 @@ static void AboutWindowProc(Window *w, W
 
{
 
	switch (e->event) {
 
	case WE_CREATE: // Set up window counter and start position of scroller
 
		WP(w, scroller_d).counter = 0;
 
		WP(w, scroller_d).counter = 5;
 
		WP(w, scroller_d).height = w->height - 40;
 
		break;
 
	case WE_PAINT: {
 
@@ -282,8 +282,9 @@ static void AboutWindowProc(Window *w, W
 
		DoDrawStringCentered(210, w->height - 25, "Website: http://www.openttd.org", TC_BLACK);
 
		DrawStringCentered(210, w->height - 15, STR_00BA_COPYRIGHT_OPENTTD, TC_FROMSTRING);
 
	} break;
 
	case WE_MOUSELOOP: // Timer to scroll the text and adjust the new top
 
		if (WP(w, scroller_d).counter++ % 3 == 0) {
 
	case WE_TICK: // Timer to scroll the text and adjust the new top
 
		if (--WP(w, scroller_d).counter == 0) {
 
			WP(w, scroller_d).counter = 5;
 
			WP(w, scroller_d).height--;
 
			SetWindowDirty(w);
 
		}
0 comments (0 inline, 0 general)