Fixed compilation

This commit is contained in:
Sergii Pylypenko
2021-12-01 01:00:56 +02:00
parent 0117af167d
commit e69cf43dff
2 changed files with 3 additions and 7 deletions

View File

@@ -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);

View File

@@ -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);