From 1d54148b3ef46b4763bb9b9c7ce7d7b4e3b12f80 Mon Sep 17 00:00:00 2001 From: Tanishq Dubey Date: Wed, 12 Jun 2024 18:25:10 -0400 Subject: [PATCH] fix build --- main.cpp | 18 +++++++++--------- 1 file changed, 9 insertions(+), 9 deletions(-) diff --git a/main.cpp b/main.cpp index ac38560..25cca24 100644 --- a/main.cpp +++ b/main.cpp @@ -245,10 +245,10 @@ int main(int argc, char* argv[]) { AA_ENABLED = !AA_ENABLED; break; case SDL_SCANCODE_H: - showHelp = !showHelp; + SHOW_HELP = !SHOW_HELP; break; case SDL_SCANCODE_D: - mode = (mode + 1) % 5; + MODE = (MODE + 1) % 5; break; case SDL_SCANCODE_R: RotateImage(t); @@ -318,18 +318,18 @@ int main(int argc, char* argv[]) { CurrentInspector_SetFlags(ImGuiTexInspect::InspectorFlags_NoForceFilterNearest); } - switch(mode) { + switch(MODE) { case 1: - ImGuiTexInspect::DrawAnnotations(ImGuiTexInspect::Arrow().UsePreset(ImGuiTexInspect::Arrow::NormalMap), maxAnnotatedTexels); + ImGuiTexInspect::DrawAnnotations(ImGuiTexInspect::Arrow().UsePreset(ImGuiTexInspect::Arrow::NormalMap), MAX_ANNOATED_TEXELS); break; case 2: - ImGuiTexInspect::DrawAnnotations(ImGuiTexInspect::ValueText(ImGuiTexInspect::ValueText::Format::HexString), maxAnnotatedTexels); + ImGuiTexInspect::DrawAnnotations(ImGuiTexInspect::ValueText(ImGuiTexInspect::ValueText::Format::HexString), MAX_ANNOATED_TEXELS); break; case 3: - ImGuiTexInspect::DrawAnnotations(ImGuiTexInspect::ValueText(ImGuiTexInspect::ValueText::Format::BytesDec), maxAnnotatedTexels); + ImGuiTexInspect::DrawAnnotations(ImGuiTexInspect::ValueText(ImGuiTexInspect::ValueText::Format::BytesDec), MAX_ANNOATED_TEXELS); break; case 4: - ImGuiTexInspect::DrawAnnotations(ImGuiTexInspect::ValueText(ImGuiTexInspect::ValueText::Format::Floats), maxAnnotatedTexels); + ImGuiTexInspect::DrawAnnotations(ImGuiTexInspect::ValueText(ImGuiTexInspect::ValueText::Format::Floats), MAX_ANNOATED_TEXELS); break; default: break; @@ -342,9 +342,9 @@ int main(int argc, char* argv[]) { ImGui::PopStyleVar(); ImGui::PopStyleVar(); - if (showHelp){ + if (SHOW_HELP){ ImGui::OpenPopup("HelpPopup"); - showHelp = !showHelp; + SHOW_HELP = !SHOW_HELP; } if (ImGui::BeginPopup("HelpPopup")) {