cleanup for debugging

This commit is contained in:
Chris Danford
2006-03-30 04:04:01 +00:00
parent 02d27d345d
commit 77e1f83a8c
+3 -2
View File
@@ -332,8 +332,9 @@ void OptionRow::InitText()
float fTotalWidth = m_pParentType->ITEMS_END_X - m_pParentType->ITEMS_START_X;
if( fWidth > fTotalWidth )
{
if( fTotalWidth / fWidth >= m_pParentType->ITEMS_MIN_BASE_ZOOM )
fBaseZoom = fTotalWidth / fWidth;
float fPossibleBaseZoom = fTotalWidth / fWidth;
if( fPossibleBaseZoom >= m_pParentType->ITEMS_MIN_BASE_ZOOM )
fBaseZoom = fPossibleBaseZoom;
else
m_pHand->m_Def.m_layoutType = LAYOUT_SHOW_ONE_IN_ROW;
}