fix: fix resolution detection (#133)

* fix: fix UI skin/scene resolution mismatch and readd screen resolution detection

* fix: fix build in vs2022
This commit is contained in:
daoge
2026-03-02 23:52:18 +08:00
committed by GitHub
parent 2145ada7ce
commit afa4efbc85
5 changed files with 11 additions and 18 deletions

View File

@@ -426,7 +426,7 @@ void UIController::loadSkins()
#elif defined __PSVITA__
platformSkinPath = L"skinVita.swf";
#elif defined _WINDOWS64
if(m_fScreenHeight>=1080.0f)
if(m_fScreenHeight>720.0f)
{
platformSkinPath = L"skinHDWin.swf";
}
@@ -435,7 +435,7 @@ void UIController::loadSkins()
platformSkinPath = L"skinWin.swf";
}
#elif defined _DURANGO
if(m_fScreenHeight>=1080.0f)
if(m_fScreenHeight>720.0f)
{
platformSkinPath = L"skinHDDurango.swf";
}
@@ -444,7 +444,7 @@ void UIController::loadSkins()
platformSkinPath = L"skinDurango.swf";
}
#elif defined __ORBIS__
if(m_fScreenHeight>=1080.0f)
if(m_fScreenHeight>720.0f)
{
platformSkinPath = L"skinHDOrbis.swf";
}
@@ -455,7 +455,7 @@ void UIController::loadSkins()
#endif
// Every platform has one of these, so nothing shared
if(m_fScreenHeight>=1080.0f)
if(m_fScreenHeight>720.0f)
{
m_iggyLibraries[eLibrary_Platform] = loadSkin(platformSkinPath, L"platformskinHD.swf");
}