mirror of
https://github.com/ddnet/ddnet.git
synced 2024-11-10 10:08:18 +00:00
fix style
This commit is contained in:
parent
ffade19e19
commit
9cdaba88dc
|
@ -1420,7 +1420,6 @@ int CEditor::PopupSelectConfigAutoMap(CEditor *pEditor, CUIRect View, void *pCon
|
||||||
static int s_AutoMapperConfigButtons[256];
|
static int s_AutoMapperConfigButtons[256];
|
||||||
CAutoMapper *pAutoMapper = &pEditor->m_Map.m_lImages[pLayer->m_Image]->m_AutoMapper;
|
CAutoMapper *pAutoMapper = &pEditor->m_Map.m_lImages[pLayer->m_Image]->m_AutoMapper;
|
||||||
|
|
||||||
|
|
||||||
const float ButtonHeight = 12.0f;
|
const float ButtonHeight = 12.0f;
|
||||||
|
|
||||||
static int s_ScrollBar = 0;
|
static int s_ScrollBar = 0;
|
||||||
|
@ -1438,7 +1437,6 @@ int CEditor::PopupSelectConfigAutoMap(CEditor *pEditor, CUIRect View, void *pCon
|
||||||
Scroll.HMargin(5.f, &Scroll);
|
Scroll.HMargin(5.f, &Scroll);
|
||||||
s_ScrollValue = pEditor->UiDoScrollbarV(&s_ScrollBar, &Scroll, s_ScrollValue);
|
s_ScrollValue = pEditor->UiDoScrollbarV(&s_ScrollBar, &Scroll, s_ScrollValue);
|
||||||
|
|
||||||
|
|
||||||
if(pEditor->UI()->MouseInside(&View) || pEditor->UI()->MouseInside(&Scroll))
|
if(pEditor->UI()->MouseInside(&View) || pEditor->UI()->MouseInside(&Scroll))
|
||||||
{
|
{
|
||||||
int ScrollNum = (int)((ListHeight / ButtonHeight) + 1);
|
int ScrollNum = (int)((ListHeight / ButtonHeight) + 1);
|
||||||
|
@ -1451,7 +1449,6 @@ int CEditor::PopupSelectConfigAutoMap(CEditor *pEditor, CUIRect View, void *pCon
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
ScrollNum = 0;
|
ScrollNum = 0;
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
// Margin for scrollbar
|
// Margin for scrollbar
|
||||||
|
|
Loading…
Reference in a new issue