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;
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")) {