diff --git a/gui.cpp b/gui.cpp index 2061fe7..179c700 100644 --- a/gui.cpp +++ b/gui.cpp @@ -44,16 +44,9 @@ void Gui::clearTextBufs(void) } // 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_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); + C2D_DrawImageAt(C2D_SpriteSheetGetImage(sheet, imgindex), x, y, 0.5f, nullptr, ScaleX, ScaleY); } // Initialize GUI. diff --git a/gui.hpp b/gui.hpp index 69035b9..866b381 100644 --- a/gui.hpp +++ b/gui.hpp @@ -40,7 +40,7 @@ namespace Gui void clearTextBufs(void); // 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. Result init(void);