Skip to content

Commit

Permalink
Base formspec coordinate size on padded screensize
Browse files Browse the repository at this point in the history
  • Loading branch information
v-rob committed Jan 5, 2022
1 parent d33ab97 commit e39b159
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/gui/guiFormSpecMenu.cpp
Expand Up @@ -3265,7 +3265,7 @@ void GUIFormSpecMenu::regenerateGui(v2u32 screensize)
((15.0 / 13.0) * (0.85 + mydata.invsize.Y));
}

s32 min_screen_dim = std::min(mydata.screensize.X, mydata.screensize.Y);
s32 min_screen_dim = std::min(padded_screensize.X, padded_screensize.Y);

#ifdef HAVE_TOUCHSCREENGUI
// In Android, the preferred imgsize should be larger to accommodate the
Expand Down

0 comments on commit e39b159

Please sign in to comment.