Changeset View
Changeset View
Standalone View
Standalone View
source/gui/CDropDown.cpp
Show First 20 Lines • Show All 526 Lines • ▼ Show 20 Lines | void CDropDown::Draw() | ||||
{ | { | ||||
CRect cliparea(m_CachedActualSize.left, m_CachedActualSize.top, | CRect cliparea(m_CachedActualSize.left, m_CachedActualSize.top, | ||||
m_CachedActualSize.right-button_width, m_CachedActualSize.bottom); | m_CachedActualSize.right-button_width, m_CachedActualSize.bottom); | ||||
CPos pos(m_CachedActualSize.left, m_CachedActualSize.top); | CPos pos(m_CachedActualSize.left, m_CachedActualSize.top); | ||||
DrawText(selected, color, pos, bz+0.1f, cliparea); | DrawText(selected, color, pos, bz+0.1f, cliparea); | ||||
} | } | ||||
bool* scrollbar = NULL; | bool* scrollbar = nullptr; | ||||
bool old; | bool old; | ||||
GUI<bool>::GetSettingPointer(this, "scrollbar", scrollbar); | GUI<bool>::GetSettingPointer(this, "scrollbar", scrollbar); | ||||
old = *scrollbar; | old = *scrollbar; | ||||
if (m_Open) | if (m_Open) | ||||
{ | { | ||||
if (m_HideScrollBar) | if (m_HideScrollBar) | ||||
Show All 20 Lines |
Wildfire Games · Phabricator