Rename parameters id -> Id

This commit is contained in:
Robert Müller 2022-05-14 19:08:43 +02:00
parent 25c4270cb4
commit 51d0d76e11
2 changed files with 4 additions and 4 deletions

View file

@ -95,9 +95,9 @@ void CRenderTools::GetSpriteScale(struct CDataSprite *pSprite, float &ScaleX, fl
GetSpriteScaleImpl(w, h, ScaleX, ScaleY); GetSpriteScaleImpl(w, h, ScaleX, ScaleY);
} }
void CRenderTools::GetSpriteScale(int id, float &ScaleX, float &ScaleY) void CRenderTools::GetSpriteScale(int Id, float &ScaleX, float &ScaleY)
{ {
GetSpriteScale(&g_pData->m_aSprites[id], ScaleX, ScaleY); GetSpriteScale(&g_pData->m_aSprites[Id], ScaleX, ScaleY);
} }
void CRenderTools::GetSpriteScaleImpl(int Width, int Height, float &ScaleX, float &ScaleY) void CRenderTools::GetSpriteScaleImpl(int Width, int Height, float &ScaleX, float &ScaleY)

View file

@ -69,11 +69,11 @@ public:
void Init(class IGraphics *pGraphics, class ITextRender *pTextRender); void Init(class IGraphics *pGraphics, class ITextRender *pTextRender);
void SelectSprite(struct CDataSprite *pSprite, int Flags = 0, int sx = 0, int sy = 0); void SelectSprite(struct CDataSprite *pSprite, int Flags = 0, int sx = 0, int sy = 0);
void SelectSprite(int id, int Flags = 0, int sx = 0, int sy = 0); void SelectSprite(int Id, int Flags = 0, int sx = 0, int sy = 0);
void GetSpriteScale(client_data7::CDataSprite *pSprite, float &ScaleX, float &ScaleY); void GetSpriteScale(client_data7::CDataSprite *pSprite, float &ScaleX, float &ScaleY);
void GetSpriteScale(struct CDataSprite *pSprite, float &ScaleX, float &ScaleY); void GetSpriteScale(struct CDataSprite *pSprite, float &ScaleX, float &ScaleY);
void GetSpriteScale(int id, float &ScaleX, float &ScaleY); void GetSpriteScale(int Id, float &ScaleX, float &ScaleY);
void GetSpriteScaleImpl(int Width, int Height, float &ScaleX, float &ScaleY); void GetSpriteScaleImpl(int Width, int Height, float &ScaleX, float &ScaleY);
void DrawSprite(float x, float y, float size); void DrawSprite(float x, float y, float size);