industry_gui.c
changeset 1981 3c9c682f1212
parent 1914 2b4b3c3a95b4
child 2063 ae866a12f2df
equal deleted inserted replaced
1980:6c5917cfcb78 1981:3c9c682f1212
   374 			}
   374 			}
   375 			}
   375 			}
   376 			break;
   376 			break;
   377 		case 6:
   377 		case 6:
   378 			i = GetIndustry(w->window_number);
   378 			i = GetIndustry(w->window_number);
   379 			ScrollMainWindowToTile(i->xy + TILE_XY(1,1));
   379 			ScrollMainWindowToTile(i->xy + TileDiffXY(1, 1));
   380 			break;
   380 			break;
   381 		}
   381 		}
   382 		}
   382 		}
   383 		break;
   383 		break;
   384 	case WE_TIMEOUT:
   384 	case WE_TIMEOUT:
   448 		w->flags4 |= WF_DISABLE_VP_SCROLL;
   448 		w->flags4 |= WF_DISABLE_VP_SCROLL;
   449 		WP(w,vp2_d).data_1 = 0;
   449 		WP(w,vp2_d).data_1 = 0;
   450 		WP(w,vp2_d).data_2 = 0;
   450 		WP(w,vp2_d).data_2 = 0;
   451 		WP(w,vp2_d).data_3 = 0;
   451 		WP(w,vp2_d).data_3 = 0;
   452 		i = GetIndustry(w->window_number);
   452 		i = GetIndustry(w->window_number);
   453 		AssignWindowViewport(w, 3, 17, 0xFE, 0x56, i->xy + TILE_XY(1,1), 1);
   453 		AssignWindowViewport(w, 3, 17, 0xFE, 0x56, i->xy + TileDiffXY(1, 1), 1);
   454 	}
   454 	}
   455 }
   455 }
   456 
   456 
   457 static const Widget _industry_directory_widgets[] = {
   457 static const Widget _industry_directory_widgets[] = {
   458 {    WWT_TEXTBTN,   RESIZE_NONE,    13,     0,    10,     0,    13, STR_00C5,									STR_018B_CLOSE_WINDOW},
   458 {    WWT_TEXTBTN,   RESIZE_NONE,    13,     0,    10,     0,    13, STR_00C5,									STR_018B_CLOSE_WINDOW},