@@ -1114,13 +1114,13 @@ struct MainToolbarWindow : Window {
if (this->IsWidgetLowered(TBN_FASTFORWARD) != !!_fast_forward) {
this->ToggleWidgetLoweredState(TBN_FASTFORWARD);
this->InvalidateWidget(TBN_FASTFORWARD);
}
virtual void OnResize(Point new_size, Point delta)
virtual void OnResize(Point delta)
{
if (this->width <= TBP_NORMAL_MAXBUTTON * TBP_BUTTONWIDTH) {
SplitToolbar(this);
} else {
ResizeToolbar(this);
@@ -1308,13 +1308,13 @@ public:
virtual void OnPlaceObject(Point pt, TileIndex tile)
_place_proc(tile);
/* There are 16 buttons plus some spacings if the space allows it.
* Furthermore there are two panels of which one is non - essential
* and that one can be removed if the space is too small. */
uint buttons_width;
uint spacing;