forked from cafeberry/cafeberry
fix: tooltips on vita resolution
This commit is contained in:
@@ -64,16 +64,19 @@ F64 UIComponent_Tooltips::getSafeZoneHalfWidth()
|
||||
float safeWidth = 0.0f;
|
||||
|
||||
#ifndef __PSVITA__
|
||||
// 85% safezone for tooltips in either SD mode
|
||||
if( !RenderManager.IsHiDef() )
|
||||
if (!(width >= 960.0f && width < 1280.0f))
|
||||
{
|
||||
// 85% safezone
|
||||
safeWidth = m_movieWidth * (0.15f / 2);
|
||||
}
|
||||
else
|
||||
{
|
||||
// 90% safezone
|
||||
safeWidth = width * (0.1f / 2);
|
||||
// 85% safezone for tooltips in either SD mode
|
||||
if( !RenderManager.IsHiDef() )
|
||||
{
|
||||
// 85% safezone
|
||||
safeWidth = m_movieWidth * (0.15f / 2);
|
||||
}
|
||||
else
|
||||
{
|
||||
// 90% safezone
|
||||
safeWidth = width * (0.1f / 2);
|
||||
}
|
||||
}
|
||||
#endif
|
||||
return safeWidth;
|
||||
|
||||
Reference in New Issue
Block a user