Changeset View
Changeset View
Standalone View
Standalone View
ps/trunk/source/gui/CChart.cpp
Show First 20 Lines • Show All 268 Lines • ▼ Show 20 Lines | else if (format == L"PERCENTAGE") | ||||
gui_str.SetValue(buffer); | gui_str.SetValue(buffer); | ||||
} | } | ||||
else | else | ||||
{ | { | ||||
LOGERROR("Unsupported chart format: " + format.EscapeToPrintableASCII()); | LOGERROR("Unsupported chart format: " + format.EscapeToPrintableASCII()); | ||||
return CSize(); | return CSize(); | ||||
} | } | ||||
return AddText(gui_str, font, 0, buffer_zone, this).GetSize(); | return AddText(gui_str, font, 0, buffer_zone).GetSize(); | ||||
} | } | ||||
void CChart::UpdateBounds() | void CChart::UpdateBounds() | ||||
{ | { | ||||
if (m_Series.empty() || m_Series[0].m_Points.empty()) | if (m_Series.empty() || m_Series[0].m_Points.empty()) | ||||
{ | { | ||||
m_LeftBottom = m_RightTop = CVector2D(0.f, 0.f); | m_LeftBottom = m_RightTop = CVector2D(0.f, 0.f); | ||||
return; | return; | ||||
Show All 24 Lines |
Wildfire Games · Phabricator