mirror of
https://github.com/luanti-org/luanti.git
synced 2025-07-02 16:38:41 +00:00
Scale C++ menus down to fit the window (#14690)
This commit is contained in:
parent
d5fc040d2d
commit
728f643ea7
6 changed files with 32 additions and 29 deletions
|
@ -94,6 +94,12 @@ protected:
|
|||
std::string m_jni_field_name;
|
||||
#endif
|
||||
|
||||
struct ScalingInfo {
|
||||
f32 scale;
|
||||
core::rect<s32> rect;
|
||||
};
|
||||
ScalingInfo getScalingInfo(v2u32 screensize, v2u32 base_size);
|
||||
|
||||
// This is set to true if the menu is currently processing a second-touch event.
|
||||
bool m_second_touch = false;
|
||||
// This is set to true if the menu is currently processing a mouse event
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue