Updated GraphicsEditor and Tile16Editor to use std::array instead of std::vector for better performance.

This commit is contained in:
Justin Scofield
2025-01-05 20:54:19 -05:00
parent 02a86c41da
commit f625fc94b3
4 changed files with 8 additions and 8 deletions

View File

@@ -154,7 +154,7 @@ void GraphicsEditor::DrawGfxEditToolset() {
TableNextColumn();
auto bitmap = GraphicsSheetManager::GetInstance().gfx_sheets()[current_sheet_];
auto palette = bitmap.palette();
for (int i = 0; i < 8; i++) {
for (int i = 0; i < palette.size(); i++) {
ImGui::SameLine();
auto color =
ImVec4(palette[i].rgb().x / 255.0f, palette[i].rgb().y / 255.0f,