src/main_gui.cpp
changeset 8994 fb5e761cf141
parent 8985 6461e5c6d6e4
child 9111 48ce04029fe4
equal deleted inserted replaced
8993:35c33a4819de 8994:fb5e761cf141
   410 
   410 
   411 	int width = _screen.width;
   411 	int width = _screen.width;
   412 	int height = _screen.height;
   412 	int height = _screen.height;
   413 
   413 
   414 	Window *w = AllocateWindow(0, 0, width, height, MainWindowWndProc, WC_MAIN_WINDOW, NULL);
   414 	Window *w = AllocateWindow(0, 0, width, height, MainWindowWndProc, WC_MAIN_WINDOW, NULL);
   415 	AssignWindowViewport(w, 0, 0, width, height, TileXY(32, 32), ZOOM_LVL_VIEWPORT);
   415 	InitializeWindowViewport(w, 0, 0, width, height, TileXY(32, 32), ZOOM_LVL_VIEWPORT);
   416 
   416 
   417 	/* XXX: these are not done */
   417 	/* XXX: these are not done */
   418 	switch (_game_mode) {
   418 	switch (_game_mode) {
   419 		default: NOT_REACHED();
   419 		default: NOT_REACHED();
   420 		case GM_MENU:
   420 		case GM_MENU: