mirror of
https://github.com/alliedmodders/hl2sdk.git
synced 2026-10-12 06:18:00 +08:00
Fixed conflict between min/max macros and std::min/max when using GCC >= 4.2.
This commit is contained in:
1 parent
b9b7f08197
commit
3e7f7bdabd
300 files changed
+1041
-1084
No files matched your search
@@ -184,7 +184,7 @@ void CMessageDialog::ApplySchemeSettings( vgui::IScheme *pScheme )
|
||||
|
||||
// position the buttons with even horizontal spacing
|
||||
int xpos = 0;
|
||||
int ypos = GetTall() - max( nButtonTall, nTextTall ) - m_ButtonMargin;
|
||||
int ypos = GetTall() - MAX( nButtonTall, nTextTall ) - m_ButtonMargin;
|
||||
int nSpacing = ( GetWide() - nTotalWide ) / ( cButtons + 1 );
|
||||
for ( int i = 0; i < MAX_BUTTONS; ++i )
|
||||
{
|
||||
@@ -234,7 +234,7 @@ void CMessageDialog::ApplySchemeSettings( vgui::IScheme *pScheme )
|
||||
// If we're animating, we push our text label in, and reduce its width
|
||||
int iX,iY,iW,iH;
|
||||
m_pMsg->GetBounds( iX, iY, iW, iH );
|
||||
m_pMsg->SetBounds( iX + m_ActivityIndent, iY, max(0,iW-m_ActivityIndent), iH );
|
||||
m_pMsg->SetBounds( iX + m_ActivityIndent, iY, MAX(0,iW-m_ActivityIndent), iH );
|
||||
}
|
||||
|
||||
// Invalidate the scheme on our message label so that it recalculates
|
||||
|
||||
Reference in new issue
Block a user