mirror of
https://github.com/ddnet/ddnet.git
synced 2024-11-10 01:58:19 +00:00
Make larger image selection popups show fully on screen (Thanks to Obst)
This commit is contained in:
parent
04c30739c5
commit
0bceef9903
|
@ -923,7 +923,10 @@ void CEditor::PopupSelectImageInvoke(int Current, float x, float y)
|
|||
static int s_SelectImagePopupId = 0;
|
||||
g_SelectImageSelected = -100;
|
||||
g_SelectImageCurrent = Current;
|
||||
UiInvokePopupMenu(&s_SelectImagePopupId, 0, x, y, 400, 300, PopupSelectImage);
|
||||
if (m_Map.m_lImages.size() > 20)
|
||||
UiInvokePopupMenu(&s_SelectImagePopupId, 0, x, 50, 400, m_Map.m_lImages.size() * 15, PopupSelectImage);
|
||||
else
|
||||
UiInvokePopupMenu(&s_SelectImagePopupId, 0, x, y, 400, 300, PopupSelectImage);
|
||||
}
|
||||
|
||||
int CEditor::PopupSelectImageResult()
|
||||
|
|
Loading…
Reference in a new issue