(svn r7313) -Codechange: Calling invalidate data on a window will surely warrant a redraw, so call
that after the WE_INVALIDATE_DATA event and remove (some of) the superflouous calls.
This commit is contained in:
@@ -455,10 +455,6 @@ void CcBuildRoadVeh(bool success, TileIndex tile, uint32 p1, uint32 p2)
|
||||
static void NewRoadVehWndProc(Window *w, WindowEvent *e)
|
||||
{
|
||||
switch (e->event) {
|
||||
case WE_INVALIDATE_DATA:
|
||||
SetWindowDirty(w);
|
||||
break;
|
||||
|
||||
case WE_PAINT:
|
||||
DrawNewRoadVehWindow(w);
|
||||
break;
|
||||
|
||||
Reference in New Issue
Block a user