(svn r6715) -Fix r6714: roadvehicle and ship building windows are now also marked dirty when getting a WE_INVALIDATE_DATA event
authorbjarni
Tue, 10 Oct 2006 08:24:29 +0000
changeset 4793 61f36389399f
parent 4792 a6fa5fc79715
child 4794 23b5ee70e87e
(svn r6715) -Fix r6714: roadvehicle and ship building windows are now also marked dirty when getting a WE_INVALIDATE_DATA event
This will make the windows mark dirty again when a new vehicle is available or one is removed from the list (again)
roadveh_gui.c
ship_gui.c
--- a/roadveh_gui.c	Tue Oct 10 08:14:30 2006 +0000
+++ b/roadveh_gui.c	Tue Oct 10 08:24:29 2006 +0000
@@ -453,6 +453,10 @@
 static void NewRoadVehWndProc(Window *w, WindowEvent *e)
 {
 	switch (e->event) {
+		case WE_INVALIDATE_DATA:
+			SetWindowDirty(w);
+			break;
+
 	case WE_PAINT:
 		DrawNewRoadVehWindow(w);
 		break;
--- a/ship_gui.c	Tue Oct 10 08:14:30 2006 +0000
+++ b/ship_gui.c	Tue Oct 10 08:24:29 2006 +0000
@@ -244,6 +244,10 @@
 static void NewShipWndProc(Window *w, WindowEvent *e)
 {
 	switch (e->event) {
+		case WE_INVALIDATE_DATA:
+			SetWindowDirty(w);
+			break;
+
 		case WE_PAINT: {
 			EngineID selected_id;
 			EngineID eid;