fix build

This commit is contained in:
Tanishq Dubey 2024-06-12 18:25:10 -04:00 committed by Tanishq Dubey
parent 460e63af26
commit 1d54148b3e

View File

@ -245,10 +245,10 @@ int main(int argc, char* argv[]) {
AA_ENABLED = !AA_ENABLED; AA_ENABLED = !AA_ENABLED;
break; break;
case SDL_SCANCODE_H: case SDL_SCANCODE_H:
showHelp = !showHelp; SHOW_HELP = !SHOW_HELP;
break; break;
case SDL_SCANCODE_D: case SDL_SCANCODE_D:
mode = (mode + 1) % 5; MODE = (MODE + 1) % 5;
break; break;
case SDL_SCANCODE_R: case SDL_SCANCODE_R:
RotateImage(t); RotateImage(t);
@ -318,18 +318,18 @@ int main(int argc, char* argv[]) {
CurrentInspector_SetFlags(ImGuiTexInspect::InspectorFlags_NoForceFilterNearest); CurrentInspector_SetFlags(ImGuiTexInspect::InspectorFlags_NoForceFilterNearest);
} }
switch(mode) { switch(MODE) {
case 1: case 1:
ImGuiTexInspect::DrawAnnotations(ImGuiTexInspect::Arrow().UsePreset(ImGuiTexInspect::Arrow::NormalMap), maxAnnotatedTexels); ImGuiTexInspect::DrawAnnotations(ImGuiTexInspect::Arrow().UsePreset(ImGuiTexInspect::Arrow::NormalMap), MAX_ANNOATED_TEXELS);
break; break;
case 2: case 2:
ImGuiTexInspect::DrawAnnotations(ImGuiTexInspect::ValueText(ImGuiTexInspect::ValueText::Format::HexString), maxAnnotatedTexels); ImGuiTexInspect::DrawAnnotations(ImGuiTexInspect::ValueText(ImGuiTexInspect::ValueText::Format::HexString), MAX_ANNOATED_TEXELS);
break; break;
case 3: case 3:
ImGuiTexInspect::DrawAnnotations(ImGuiTexInspect::ValueText(ImGuiTexInspect::ValueText::Format::BytesDec), maxAnnotatedTexels); ImGuiTexInspect::DrawAnnotations(ImGuiTexInspect::ValueText(ImGuiTexInspect::ValueText::Format::BytesDec), MAX_ANNOATED_TEXELS);
break; break;
case 4: case 4:
ImGuiTexInspect::DrawAnnotations(ImGuiTexInspect::ValueText(ImGuiTexInspect::ValueText::Format::Floats), maxAnnotatedTexels); ImGuiTexInspect::DrawAnnotations(ImGuiTexInspect::ValueText(ImGuiTexInspect::ValueText::Format::Floats), MAX_ANNOATED_TEXELS);
break; break;
default: default:
break; break;
@ -342,9 +342,9 @@ int main(int argc, char* argv[]) {
ImGui::PopStyleVar(); ImGui::PopStyleVar();
ImGui::PopStyleVar(); ImGui::PopStyleVar();
if (showHelp){ if (SHOW_HELP){
ImGui::OpenPopup("HelpPopup"); ImGui::OpenPopup("HelpPopup");
showHelp = !showHelp; SHOW_HELP = !SHOW_HELP;
} }
if (ImGui::BeginPopup("HelpPopup")) { if (ImGui::BeginPopup("HelpPopup")) {