mirror of
https://github.com/ddnet/ddnet.git
synced 2024-11-19 22:48:18 +00:00
Cosmetic fixes, include intrinsics file for mingw
This commit is contained in:
parent
8353185c5a
commit
1126fa8926
|
@ -2,6 +2,7 @@
|
|||
/* If you are missing that file, acquire a complete release at teeworlds.com. */
|
||||
#include <new>
|
||||
|
||||
#include <immintrin.h> //_mm_pause
|
||||
#include <stdlib.h> // qsort
|
||||
#include <stdarg.h>
|
||||
|
||||
|
|
|
@ -1252,7 +1252,7 @@ void CMenus::RenderSettingsGraphics(CUIRect MainView)
|
|||
BottomView.HSplitTop(20.f, 0, &BottomView);
|
||||
|
||||
// render screen menu background
|
||||
int NumOptions = 4;
|
||||
int NumOptions = 3 + (!g_Config.m_GfxFullscreen);
|
||||
if(Graphics()->GetNumScreens() > 1)
|
||||
++NumOptions;
|
||||
float ButtonHeight = 20.0f;
|
||||
|
@ -1275,7 +1275,10 @@ void CMenus::RenderSettingsGraphics(CUIRect MainView)
|
|||
ScreenLeft.HSplitTop(ButtonHeight, &Label, &ScreenLeft);
|
||||
Label.y += 2.0f;
|
||||
UI()->DoLabel(&Label, Localize("Screen"), ButtonHeight*ms_FontmodHeight*0.8f, CUI::ALIGN_CENTER);
|
||||
|
||||
ScreenLeft.VSplitMid(&ScreenLeft, &ScreenRight);
|
||||
ScreenLeft.VSplitRight(Spacing * 0.5f, &ScreenLeft, 0);
|
||||
ScreenRight.VSplitLeft(Spacing * 0.5f, 0, &ScreenRight);
|
||||
|
||||
ScreenLeft.HSplitTop(Spacing, 0, &ScreenLeft);
|
||||
ScreenLeft.HSplitTop(ButtonHeight, &Button, &ScreenLeft);
|
||||
|
|
Loading…
Reference in a new issue