src/main_gui.cpp
branchNewGRF_ports
changeset 10994 cd9968b6f96b
parent 10991 d8811e327d12
equal deleted inserted replaced
10991:d8811e327d12 10994:cd9968b6f96b
   287 				*(byte*)0 = 0;
   287 				*(byte*)0 = 0;
   288 				break;
   288 				break;
   289 
   289 
   290 			case '1' | WKC_ALT: // Gimme money
   290 			case '1' | WKC_ALT: // Gimme money
   291 				/* Server can not cheat in advertise mode either! */
   291 				/* Server can not cheat in advertise mode either! */
   292 				if (!_networking || !_network_server || !_network_advertise)
   292 				if (!_networking || !_network_server || !_settings_client.network.server_advertise)
   293 					DoCommandP(0, 10000000, 0, NULL, CMD_MONEY_CHEAT);
   293 					DoCommandP(0, 10000000, 0, NULL, CMD_MONEY_CHEAT);
   294 				break;
   294 				break;
   295 
   295 
   296 			case '2' | WKC_ALT: // Update the coordinates of all station signs
   296 			case '2' | WKC_ALT: // Update the coordinates of all station signs
   297 				UpdateAllStationVirtCoord();
   297 				UpdateAllStationVirtCoord();
   444  * Size of the application screen changed.
   444  * Size of the application screen changed.
   445  * Adapt the game screen-size, re-allocate the open windows, and repaint everything
   445  * Adapt the game screen-size, re-allocate the open windows, and repaint everything
   446  */
   446  */
   447 void GameSizeChanged()
   447 void GameSizeChanged()
   448 {
   448 {
   449 	_cur_resolution[0] = _screen.width;
   449 	_cur_resolution.width  = _screen.width;
   450 	_cur_resolution[1] = _screen.height;
   450 	_cur_resolution.height = _screen.height;
   451 	ScreenSizeChanged();
   451 	ScreenSizeChanged();
   452 	RelocateAllWindows(_screen.width, _screen.height);
   452 	RelocateAllWindows(_screen.width, _screen.height);
   453 	MarkWholeScreenDirty();
   453 	MarkWholeScreenDirty();
   454 }
   454 }