Decouple <cstddef>
This commit is contained in:
@@ -7,6 +7,7 @@
|
||||
#include "ProfileManager.h"
|
||||
#include "Profile.h"
|
||||
|
||||
#include <cstddef>
|
||||
|
||||
static const char *RankingTypeNames[] = {
|
||||
"Category",
|
||||
@@ -31,7 +32,7 @@ REGISTER_SCREEN_CLASS( ScreenRanking );
|
||||
#define TIME_X(row) (TIME_START_X+ROW_SPACING_X*row)
|
||||
#define TIME_Y(row) (TIME_START_Y+ROW_SPACING_Y*row)
|
||||
|
||||
static RString STEPS_TYPE_COLOR_NAME( size_t i ) { return ssprintf("StepsTypeColor%d",int(i+1)); }
|
||||
static RString STEPS_TYPE_COLOR_NAME( std::size_t i ) { return ssprintf("StepsTypeColor%d",int(i+1)); }
|
||||
|
||||
void ScreenRanking::Init()
|
||||
{
|
||||
@@ -151,7 +152,7 @@ void ScreenRanking::Init()
|
||||
m_textPoints[l].SetXY( POINTS_X(l), POINTS_Y(l) );
|
||||
ActorUtil::LoadAllCommands( m_textPoints[l], m_sName );
|
||||
this->AddChild( &m_textPoints[l] );
|
||||
|
||||
|
||||
m_textTime[l].SetName( ssprintf("Time%d",l+1) );
|
||||
m_textTime[l].LoadFromFont( THEME->GetPathF(m_sName,"time") );
|
||||
m_textTime[l].SetVisible( false );
|
||||
@@ -230,10 +231,10 @@ float ScreenRanking::SetPage( const PageToShow &pts )
|
||||
|
||||
m_textScores[l].SetVisible( bShowScores );
|
||||
m_textScores[l].SetDiffuseColor( STEPS_TYPE_COLOR.GetValue(pts.colorIndex) );
|
||||
|
||||
|
||||
m_textPoints[l].SetVisible( bShowPoints );
|
||||
m_textPoints[l].SetDiffuseColor( STEPS_TYPE_COLOR.GetValue(pts.colorIndex) );
|
||||
|
||||
|
||||
m_textTime[l].SetVisible( bShowTime );
|
||||
m_textTime[l].SetDiffuseColor( STEPS_TYPE_COLOR.GetValue(pts.colorIndex) );
|
||||
}
|
||||
@@ -340,7 +341,7 @@ float ScreenRanking::SetPage( const PageToShow &pts )
|
||||
/*
|
||||
* (c) 2001-2007 Chris Danford, Glenn Maynard
|
||||
* All rights reserved.
|
||||
*
|
||||
*
|
||||
* Permission is hereby granted, free of charge, to any person obtaining a
|
||||
* copy of this software and associated documentation files (the
|
||||
* "Software"), to deal in the Software without restriction, including
|
||||
@@ -350,7 +351,7 @@ float ScreenRanking::SetPage( const PageToShow &pts )
|
||||
* copyright notice(s) and this permission notice appear in all copies of
|
||||
* the Software and that both the above copyright notice(s) and this
|
||||
* permission notice appear in supporting documentation.
|
||||
*
|
||||
*
|
||||
* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS
|
||||
* OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
|
||||
* MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT OF
|
||||
|
||||
Reference in New Issue
Block a user