main_gui.c
changeset 1637 ee2049729147
parent 1636 060fc7b40cb8
child 1639 3e0f7fc108ac
--- a/main_gui.c	Sun Apr 03 10:21:37 2005 +0000
+++ b/main_gui.c	Sun Apr 03 13:35:43 2005 +0000
@@ -1911,8 +1911,8 @@
 		case 'A': ShowBuildRailToolbar(_last_built_railtype, 4); break; /* Invoke Autorail */
 		case 'L': ShowTerraformToolbar(); break;
 		default: return;
+		}
 		e->keypress.cont = false;
-		}
 	} break;
 
 	case WE_PLACE_OBJ: {
@@ -2397,14 +2397,14 @@
 	// XXX: these are not done
 	switch(_game_mode) {
 	case GM_MENU:
-		w = AllocateWindow(0, 0, width, height, MainWindowWndProc, 0, NULL);
+		w = AllocateWindow(0, 0, width, height, MainWindowWndProc, WC_MAIN_WINDOW, NULL);
 		AssignWindowViewport(w, 0, 0, width, height, TILE_XY(32, 32), 0);
 //		w = AllocateWindowDesc(&_toolb_intro_desc);
 //		w->flags4 &= ~WF_WHITE_BORDER_MASK;
 		ShowSelectGameWindow();
 		break;
 	case GM_NORMAL:
-		w = AllocateWindow(0, 0, width, height, MainWindowWndProc, 0, NULL);
+		w = AllocateWindow(0, 0, width, height, MainWindowWndProc, WC_MAIN_WINDOW, NULL);
 		AssignWindowViewport(w, 0, 0, width, height, TILE_XY(32, 32), 0);
 
 		ShowVitalWindows();
@@ -2415,7 +2415,7 @@
 
 		break;
 	case GM_EDITOR:
-		w = AllocateWindow(0, 0, width, height, MainWindowWndProc, 0, NULL);
+		w = AllocateWindow(0, 0, width, height, MainWindowWndProc, WC_MAIN_WINDOW, NULL);
 		AssignWindowViewport(w, 0, 0, width, height, 0, 0);
 
 		w = AllocateWindowDesc(&_toolb_scen_desc);