File diff r11518:6c02f3322c23 → r11519:80d5a7e0eeb8
src/newgrf_gui.cpp
Show inline comments
 
@@ -675,25 +675,25 @@ struct NewGRFWindow : public Window {
 
				c->num_params = parse_intlist(str, (int*)c->param, lengthof(c->param));
 

	
 
				/* parse_intlist returns -1 on error */
 
				if (c->num_params == (byte)-1) c->num_params = 0;
 

	
 
				this->preset = -1;
 
				this->SetDirty();
 
				break;
 
			}
 
		}
 
	}
 

	
 
	virtual void OnResize(Point new_size, Point delta)
 
	virtual void OnResize(Point delta)
 
	{
 
		if (delta.x != 0) {
 
			ResizeButtons(this, SNGRFS_ADD, SNGRFS_MOVE_DOWN);
 
			ResizeButtons(this, SNGRFS_SET_PARAMETERS, SNGRFS_APPLY_CHANGES);
 
		}
 

	
 
		this->vscroll.cap += delta.y / 14;
 
		this->widget[SNGRFS_FILE_LIST].data = (this->vscroll.cap << 8) + 1;
 

	
 
		this->SetupNewGRFWindow();
 
	}