From 20ab684aae749c4d1b6f1294cbb00b1fde41100d Mon Sep 17 00:00:00 2001 From: scawful Date: Sat, 18 Jan 2025 22:01:45 -0500 Subject: [PATCH] Add begin() and end() methods to SnesPalette for improved iteration --- src/app/gfx/snes_palette.h | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/app/gfx/snes_palette.h b/src/app/gfx/snes_palette.h index 47128644..8cf03fe5 100644 --- a/src/app/gfx/snes_palette.h +++ b/src/app/gfx/snes_palette.h @@ -147,6 +147,8 @@ class SnesPalette { void clear() { colors.clear(); } auto size() const { return colors.size(); } auto empty() const { return colors.empty(); } + auto begin() { return colors.begin(); } + auto end() { return colors.end(); } SnesColor &operator[](int i) { if (i > colors.size()) {