gfx cleanup

This commit is contained in:
scawful
2024-08-13 18:04:41 -04:00
parent c26a5b4a5e
commit 327985b1c9
3 changed files with 16 additions and 6 deletions

View File

@@ -151,14 +151,14 @@ class SnesPalette {
void operator()(int i, const SnesColor& color) {
if (i >= colors.size()) {
std::cout << SNESPalette: Index out of bounds << std::endl;
std::cout << "SNESPalette: Index out of bounds" << std::endl;
}
colors[i] = color;
}
void operator()(int i, const ImVec4& color) {
if (i >= colors.size()) {
std::cout << SNESPalette: Index out of bounds << std::endl;
std::cout << "SNESPalette: Index out of bounds" << std::endl;
return;
}
colors[i].set_rgb(color);