(svn r11211) -Fix [FS#1302]: NewGRF GUI scrollbar does funny things when being resized.
This commit is contained in:
@@ -515,6 +515,7 @@ static void NewGRFWndProc(Window *w, WindowEvent *e)
|
|||||||
case WE_RESIZE:
|
case WE_RESIZE:
|
||||||
w->vscroll.cap += e->we.sizing.diff.y / 14;
|
w->vscroll.cap += e->we.sizing.diff.y / 14;
|
||||||
w->widget[SNGRFS_FILE_LIST].data = (w->vscroll.cap << 8) + 1;
|
w->widget[SNGRFS_FILE_LIST].data = (w->vscroll.cap << 8) + 1;
|
||||||
|
SetupNewGRFWindow(w);
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user