From bd95cc3ef85008f5f42673bca1e8b8a86341ea4a Mon Sep 17 00:00:00 2001 From: risingPhil Date: Wed, 7 Aug 2024 21:52:16 +0200 Subject: [PATCH] Fix SpriteRenderer comments after latest changes --- src/SpriteRenderer.cpp | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) diff --git a/src/SpriteRenderer.cpp b/src/SpriteRenderer.cpp index 625eb7e..b26fe88 100644 --- a/src/SpriteRenderer.cpp +++ b/src/SpriteRenderer.cpp @@ -5,10 +5,8 @@ using OutputFormat = SpriteRenderer::OutputFormat; -// The next set of functions are defined to remove the white background from a decoded RGBA pokémon sprite by doing edge detection -// The code below is specific for RGBA32, NOT RGBA16. -// For PokeMe64, however, I'll need RGBA16. -// TODO: rework the code to be able to do both. +// The next set of functions are defined to remove the white background from a decoded RGBA pokémon sprite by doing edge detection. +// Both RGBA32 and RGBA16 formats are supported /** * @brief Returns the byte offset for the pixel at the specified row and column in a RGBA buffer @@ -432,7 +430,7 @@ static void removeBackground(uint8_t *buffer, OutputFormat format, int spriteWid } } -// end of the removeBackground RGBA32 specific code +// end of the removeBackground specific code uint32_t SpriteRenderer::getNumRGBBytesFor(uint8_t numHTiles, uint8_t numVTiles) const {