mirror of
https://github.com/DarkStore-3DS/Universal-Core.git
synced 2026-07-03 00:39:23 +00:00
Remove tint param.
This commit is contained in:
@@ -44,16 +44,9 @@ void Gui::clearTextBufs(void)
|
|||||||
}
|
}
|
||||||
|
|
||||||
// Draw a sprite from the sheet.
|
// Draw a sprite from the sheet.
|
||||||
void Gui::DrawSprite(C2D_SpriteSheet sheet, size_t imgindex, int x, int y, float ScaleX, float ScaleY, u32 tintColor)
|
void Gui::DrawSprite(C2D_SpriteSheet sheet, size_t imgindex, int x, int y, float ScaleX, float ScaleY)
|
||||||
{
|
{
|
||||||
// Tint sprite.
|
C2D_DrawImageAt(C2D_SpriteSheetGetImage(sheet, imgindex), x, y, 0.5f, nullptr, ScaleX, ScaleY);
|
||||||
C2D_ImageTint tint;
|
|
||||||
C2D_SetImageTint(&tint, C2D_TopLeft, tintColor, 1);
|
|
||||||
C2D_SetImageTint(&tint, C2D_TopRight, tintColor, 1);
|
|
||||||
C2D_SetImageTint(&tint, C2D_BotLeft, tintColor, 1);
|
|
||||||
C2D_SetImageTint(&tint, C2D_BotRight, tintColor, 1);
|
|
||||||
C2D_Image img = C2D_SpriteSheetGetImage(sheet, imgindex);
|
|
||||||
C2D_DrawImageAt(img, x, y, 0.5f, &tint, ScaleX, ScaleY);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
// Initialize GUI.
|
// Initialize GUI.
|
||||||
|
|||||||
@@ -40,7 +40,7 @@ namespace Gui
|
|||||||
void clearTextBufs(void);
|
void clearTextBufs(void);
|
||||||
|
|
||||||
// Draw a sprite from a sheet.
|
// Draw a sprite from a sheet.
|
||||||
void DrawSprite(C2D_SpriteSheet sheet, size_t imgindex, int x, int y, float ScaleX = 1, float ScaleY = 1, u32 tintColor = C2D_Color32(0, 0, 0, 0));
|
void DrawSprite(C2D_SpriteSheet sheet, size_t imgindex, int x, int y, float ScaleX = 1, float ScaleY = 1);
|
||||||
|
|
||||||
// Initialize the GUI with Citro2D & Citro3D and initialize the Textbuffer.
|
// Initialize the GUI with Citro2D & Citro3D and initialize the Textbuffer.
|
||||||
Result init(void);
|
Result init(void);
|
||||||
|
|||||||
Reference in New Issue
Block a user