Fixed compilation
This commit is contained in:
@@ -14,13 +14,9 @@
|
||||
#include "widgets/dropdown_type.h"
|
||||
|
||||
/** Width of setting buttons */
|
||||
#define SETTING_BUTTON_WIDTH (GetMinButtonSize() * 2)
|
||||
#define SETTING_BUTTON_WIDTH ((int)GetMinButtonSize() * 2)
|
||||
/** Height of setting buttons */
|
||||
#define SETTING_BUTTON_HEIGHT (GetMinButtonSize())
|
||||
|
||||
|
||||
extern int SETTING_BUTTON_WIDTH; ///< Width of setting buttons
|
||||
extern int SETTING_BUTTON_HEIGHT; ///< Height of setting buttons
|
||||
#define SETTING_BUTTON_HEIGHT ((int)GetMinButtonSize())
|
||||
|
||||
void DrawArrowButtons(int x, int y, Colours button_colour, byte state, bool clickable_left, bool clickable_right);
|
||||
void DrawDropDownButton(int x, int y, Colours button_colour, bool state, bool clickable);
|
||||
|
||||
@@ -3795,7 +3795,7 @@ void RelocateAllWindows(int neww, int newh)
|
||||
break;
|
||||
|
||||
case WC_STATUS_BAR:
|
||||
ResizeWindow(w, std::min<uint>(neww, std::min<int>(_toolbar_width, _screen.width * 2 / 3 - SETTING_BUTTON_HEIGHT * 2)) - w->width, 0, false);
|
||||
ResizeWindow(w, std::min<uint>(neww, std::min<int>(_toolbar_width, _screen.width * 2 / 3 - GetMinButtonSize() * 2)) - w->width, 0, false);
|
||||
|
||||
top = newh - w->height;
|
||||
left = PositionStatusbar(w);
|
||||
|
||||
Reference in New Issue
Block a user