Refactor color conversion logic for improved accuracy and consistency
- Updated color channel assignments in ConvertRgbToSnes and SnesColor constructor to remove unnecessary static_cast, enhancing clarity and ensuring correct value usage. - Simplified namespace declaration in snes_palette.cc for better readability. - Changed Paletteset constructor parameters to use const references, improving performance and consistency in object handling.
This commit is contained in:
@@ -395,10 +395,11 @@ struct Paletteset {
|
||||
* @param spr2 The second sprite palette.
|
||||
* @param comp The composite palette.
|
||||
*/
|
||||
Paletteset(gfx::SnesPalette main, gfx::SnesPalette animated,
|
||||
gfx::SnesPalette aux1, gfx::SnesPalette aux2,
|
||||
gfx::SnesColor background, gfx::SnesPalette hud,
|
||||
gfx::SnesPalette spr, gfx::SnesPalette spr2, gfx::SnesPalette comp)
|
||||
Paletteset(const gfx::SnesPalette& main, const gfx::SnesPalette& animated,
|
||||
const gfx::SnesPalette& aux1, const gfx::SnesPalette& aux2,
|
||||
const gfx::SnesColor& background, const gfx::SnesPalette& hud,
|
||||
const gfx::SnesPalette& spr, const gfx::SnesPalette& spr2,
|
||||
const gfx::SnesPalette& comp)
|
||||
: main_(main),
|
||||
animated(animated),
|
||||
aux1(aux1),
|
||||
|
||||
Reference in New Issue
Block a user