mirror of
https://github.com/gbdev/rgbds.git
synced 2025-11-20 10:12:06 +00:00
Use std::tie for sort comparator functions
This commit is contained in:
@@ -75,6 +75,7 @@ void sortRgb(std::vector<Palette> &palettes) {
|
||||
options.verbosePrint(Options::VERB_LOG_ACT, "Sorting palettes by luminance...\n");
|
||||
|
||||
for (Palette &pal : palettes) {
|
||||
// Sort from lightest to darkest
|
||||
std::sort(RANGE(pal), [](uint16_t lhs, uint16_t rhs) {
|
||||
return luminance(lhs) > luminance(rhs);
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user