Skip to content

Commit

Permalink
fix selection when same named dx9 & dx11 variants exists
Browse files Browse the repository at this point in the history
  • Loading branch information
megai2 committed Dec 4, 2021
1 parent b64b507 commit 17a4261
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/Gui.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -169,8 +169,10 @@ void Gui::deinit()

void Gui::drawSeletionOption(const char* txt, int* v, RenderType v_button)
{
char buf[256];
sprintf_s(buf, "%s##radio_selector_%u", txt, v_button);
if (gAddon().main.checkAvailability(v_button))
ImGui::RadioButton(txt, v, (int)v_button);
ImGui::RadioButton(buf, v, (int)v_button);
else
ImGui::Text(" %s (N/A)", txt);
}
1 change: 1 addition & 0 deletions src/stdafx.h
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@
#include <windows.h>
#include <gw2al_api.h>
#include <gw2al_lib_imgui.h>
#include <stdio.h>

#include "Main.h"
#include "Gui.h"
Expand Down

0 comments on commit 17a4261

Please sign in to comment.