replace header preprocessor conditional with cpp function

This commit is contained in:
Marco Antonio Jaguaribe Costa
2023-01-30 09:25:01 -03:00
committed by majcosta
parent b5ec955324
commit f8f8461a65
4 changed files with 13 additions and 15 deletions
+2 -2
View File
@@ -3075,11 +3075,11 @@ void ApologizeOverrideAndForceUpdateEverything()
//Draw it
DrawButton( iSummaryButton[ SUMMARY_BACKGROUND ] );
InvalidateRegion( 0, 0, SCREEN_WIDTH, SCREEN_HEIGHT );
SetFont( HUGEFONT );
SetFont( GetHugeFont() );
SetFontForeground( FONT_RED );
SetFontShadow( FONT_NEARBLACK );
swprintf( str, pApologizeOverrideAndForceUpdateEverythingText[0] );
mprintf( (iScreenWidthOffset + 320) - StringPixLength( str, HUGEFONT )/2, iScreenHeightOffset + 105, str );
mprintf( (iScreenWidthOffset + 320) - StringPixLength( str, GetHugeFont() )/2, iScreenHeightOffset + 105, str );
SetFont( FONT10ARIAL );
SetFontForeground( FONT_YELLOW );
swprintf( str, pApologizeOverrideAndForceUpdateEverythingText[1], gusNumberOfMapsToBeForceUpdated );