mirror of
https://github.com/ddnet/ddnet.git
synced 2024-11-10 01:58:19 +00:00
client/menus_ingame: Fix a warning about struct padding
Excessive padding in 'struct CColumn' (8 padding bytes, where 0 is optimal).
This commit is contained in:
parent
dd94d662ca
commit
9faea2ff6e
|
@ -937,8 +937,8 @@ void CMenus::RenderGhost(CUIRect MainView)
|
|||
|
||||
struct CColumn
|
||||
{
|
||||
int m_Id;
|
||||
CLocConstString m_Caption;
|
||||
int m_Id;
|
||||
float m_Width;
|
||||
CUIRect m_Rect;
|
||||
CUIRect m_Spacer;
|
||||
|
@ -952,10 +952,10 @@ void CMenus::RenderGhost(CUIRect MainView)
|
|||
};
|
||||
|
||||
static CColumn s_aCols[] = {
|
||||
{-1, " ", 2.0f, {0}, {0}},
|
||||
{COL_ACTIVE, " ", 30.0f, {0}, {0}},
|
||||
{COL_NAME, "Name", 300.0f, {0}, {0}}, // Localize("Name")
|
||||
{COL_TIME, "Time", 200.0f, {0}, {0}}, // Localize("Time")
|
||||
{" ", -1, 2.0f, {0}, {0}},
|
||||
{" ", COL_ACTIVE, 30.0f, {0}, {0}},
|
||||
{"Name", COL_NAME, 300.0f, {0}, {0}}, // Localize("Name")
|
||||
{"Time", COL_TIME, 200.0f, {0}, {0}}, // Localize("Time")
|
||||
};
|
||||
|
||||
int NumCols = std::size(s_aCols);
|
||||
|
|
Loading…
Reference in a new issue