Fixed quick menu popping up in incorrect position if GUI Scale is not 1.0
This commit is contained in:
parent
6fb150e72a
commit
1e30e3596d
3 changed files with 11 additions and 5 deletions
|
|
@ -77,6 +77,8 @@ class Toolbar {
|
|||
Vector4f* colorLeft = nullptr;
|
||||
Vector4f* colorRight = nullptr;
|
||||
std::optional<Vector2f> paintPopupLocation;
|
||||
|
||||
float final_gui_scale();
|
||||
private:
|
||||
static void sdl_open_file_dialog_callback(void* userData, const char * const * fileList, int filter);
|
||||
|
||||
|
|
@ -128,14 +130,14 @@ class Toolbar {
|
|||
bool justAssignedColorLeft = false;
|
||||
bool justAssignedColorRight = false;
|
||||
|
||||
float guiScale = 1.0f;
|
||||
|
||||
bool showPerformance = false;
|
||||
|
||||
bool menuPopUpOpen = false;
|
||||
bool optionsMenuOpen = false;
|
||||
bool playerMenuOpen = false;
|
||||
|
||||
float guiScale = 1.0f;
|
||||
|
||||
enum {
|
||||
CHATBOXSTATE_OPEN,
|
||||
CHATBOXSTATE_JUSTOPEN,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue