mirror of
https://github.com/gbdev/rgbds.git
synced 2026-10-06 12:15:39 +00:00
Use a constant for 0x8001 (#1596)
This commit is contained in:
1 parent
d9773424e4
commit
b13c0f2f8e
3 files changed
+7
-4
No files matched your search
@@ -46,7 +46,7 @@ void sortIndexed(
|
||||
}
|
||||
|
||||
void sortGrayscale(
|
||||
std::vector<Palette> &palettes, std::array<std::optional<Rgba>, 0x8001> const &colors
|
||||
std::vector<Palette> &palettes, std::array<std::optional<Rgba>, NB_COLOR_SLOTS> const &colors
|
||||
) {
|
||||
options.verbosePrint(Options::VERB_LOG_ACT, "Sorting palette by grayscale bins...\n");
|
||||
|
||||
|
||||
+1
-2
@@ -26,8 +26,7 @@
|
||||
#include "gfx/proto_palette.hpp"
|
||||
|
||||
class ImagePalette {
|
||||
// Use as many slots as there are CGB colors (plus transparency)
|
||||
std::array<std::optional<Rgba>, 0x8001> _colors;
|
||||
std::array<std::optional<Rgba>, NB_COLOR_SLOTS> _colors;
|
||||
|
||||
public:
|
||||
ImagePalette() = default;
|
||||
|
||||
Reference in new issue
Block a user