src/newgrf_gui.cpp
changeset 10461 48556aee54da
parent 10434 d6accd017341
child 10484 e8beb2845f13
equal deleted inserted replaced
10460:a834c2e45ae1 10461:48556aee54da
   406 				case SNGRFS_ADD: { // Add GRF
   406 				case SNGRFS_ADD: { // Add GRF
   407 					GRFConfig **list = WP(w, newgrf_d).list;
   407 					GRFConfig **list = WP(w, newgrf_d).list;
   408 					Window *w;
   408 					Window *w;
   409 
   409 
   410 					DeleteWindowByClass(WC_SAVELOAD);
   410 					DeleteWindowByClass(WC_SAVELOAD);
   411 					w = AllocateWindowDesc(&_newgrf_add_dlg_desc);
   411 					w = new Window(&_newgrf_add_dlg_desc);
   412 					w->resize.step_height = 10;
   412 					w->resize.step_height = 10;
   413 
   413 
   414 					WP(w, newgrf_add_d).list = list;
   414 					WP(w, newgrf_add_d).list = list;
   415 					break;
   415 					break;
   416 				}
   416 				}
   580 {
   580 {
   581 	static GRFConfig *local = NULL;
   581 	static GRFConfig *local = NULL;
   582 	Window *w;
   582 	Window *w;
   583 
   583 
   584 	DeleteWindowByClass(WC_GAME_OPTIONS);
   584 	DeleteWindowByClass(WC_GAME_OPTIONS);
   585 	w = AllocateWindowDesc(&_newgrf_desc);
   585 	w = new Window(&_newgrf_desc);
   586 	if (w == NULL) return;
   586 	if (w == NULL) return;
   587 
   587 
   588 	w->resize.step_height = 14;
   588 	w->resize.step_height = 14;
   589 	CopyGRFConfigList(&local, *config, false);
   589 	CopyGRFConfigList(&local, *config, false);
   590 
   590