cleanup for debugging
This commit is contained in:
@@ -332,8 +332,9 @@ void OptionRow::InitText()
|
|||||||
float fTotalWidth = m_pParentType->ITEMS_END_X - m_pParentType->ITEMS_START_X;
|
float fTotalWidth = m_pParentType->ITEMS_END_X - m_pParentType->ITEMS_START_X;
|
||||||
if( fWidth > fTotalWidth )
|
if( fWidth > fTotalWidth )
|
||||||
{
|
{
|
||||||
if( fTotalWidth / fWidth >= m_pParentType->ITEMS_MIN_BASE_ZOOM )
|
float fPossibleBaseZoom = fTotalWidth / fWidth;
|
||||||
fBaseZoom = fTotalWidth / fWidth;
|
if( fPossibleBaseZoom >= m_pParentType->ITEMS_MIN_BASE_ZOOM )
|
||||||
|
fBaseZoom = fPossibleBaseZoom;
|
||||||
else
|
else
|
||||||
m_pHand->m_Def.m_layoutType = LAYOUT_SHOW_ONE_IN_ROW;
|
m_pHand->m_Def.m_layoutType = LAYOUT_SHOW_ONE_IN_ROW;
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user