fix: do not use hardcoded screen size
This commit is contained in:
@@ -6234,7 +6234,7 @@ wstring CMinecraftApp::GetActionReplacement(int iPad, unsigned char ucAction)
|
|||||||
int size = 30;
|
int size = 30;
|
||||||
#elif defined _WIN64
|
#elif defined _WIN64
|
||||||
int size = 45;
|
int size = 45;
|
||||||
if(ui.getScreenWidth() < 1920) size = 30;
|
if(ui.getScreenHeight() < 1080) size = 30;
|
||||||
#else
|
#else
|
||||||
int size = 45;
|
int size = 45;
|
||||||
#endif
|
#endif
|
||||||
@@ -6363,7 +6363,7 @@ wstring CMinecraftApp::GetVKReplacement(unsigned int uiVKey)
|
|||||||
int size = 30;
|
int size = 30;
|
||||||
#elif defined _WIN64
|
#elif defined _WIN64
|
||||||
int size = 45;
|
int size = 45;
|
||||||
if(ui.getScreenWidth() < 1920) size = 30;
|
if(ui.getScreenHeight() < 1080) size = 30;
|
||||||
#else
|
#else
|
||||||
int size = 45;
|
int size = 45;
|
||||||
#endif
|
#endif
|
||||||
@@ -6394,7 +6394,7 @@ wstring CMinecraftApp::GetIconReplacement(unsigned int uiIcon)
|
|||||||
int size = 22;
|
int size = 22;
|
||||||
#elif defined _WIN64
|
#elif defined _WIN64
|
||||||
int size = 33;
|
int size = 33;
|
||||||
if(ui.getScreenWidth() < 1920) size = 22;
|
if(ui.getScreenHeight() < 1080) size = 22;
|
||||||
#else
|
#else
|
||||||
int size = 33;
|
int size = 33;
|
||||||
#endif
|
#endif
|
||||||
|
|||||||
@@ -176,7 +176,7 @@ UIController::UIController()
|
|||||||
#if defined _WINDOWS64 || defined _DURANGO || defined __ORBIS__
|
#if defined _WINDOWS64 || defined _DURANGO || defined __ORBIS__
|
||||||
m_fScreenWidth = 1920.0f;
|
m_fScreenWidth = 1920.0f;
|
||||||
m_fScreenHeight = 1080.0f;
|
m_fScreenHeight = 1080.0f;
|
||||||
m_bScreenWidthSetup = true;
|
m_bScreenWidthSetup = false;
|
||||||
#else
|
#else
|
||||||
m_fScreenWidth = 1280.0f;
|
m_fScreenWidth = 1280.0f;
|
||||||
m_fScreenHeight = 720.0f;
|
m_fScreenHeight = 720.0f;
|
||||||
|
|||||||
Reference in New Issue
Block a user