Skip to content

Commit 06621a9

Browse files
committed
SDL: Fix second port controller/memcard type changes
1 parent 2dd7f48 commit 06621a9

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/duckstation-sdl/sdl_host_interface.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1077,7 +1077,7 @@ void SDLHostInterface::DrawSettingsWindow()
10771077

10781078
int controller_type = static_cast<int>(m_settings_copy.controller_types[i]);
10791079
if (ImGui::Combo(
1080-
"##controller_type", &controller_type,
1080+
TinyString::FromFormat("##controller_type%d", i), &controller_type,
10811081
[](void*, int index, const char** out_text) {
10821082
*out_text = Settings::GetControllerTypeDisplayName(static_cast<ControllerType>(index));
10831083
return true;
@@ -1093,7 +1093,7 @@ void SDLHostInterface::DrawSettingsWindow()
10931093

10941094
int memory_card_type = static_cast<int>(m_settings_copy.memory_card_types[i]);
10951095
if (ImGui::Combo(
1096-
"##memory_card_type", &memory_card_type,
1096+
TinyString::FromFormat("##memory_card_type%d", i), &memory_card_type,
10971097
[](void*, int index, const char** out_text) {
10981098
*out_text = Settings::GetMemoryCardTypeDisplayName(static_cast<MemoryCardType>(index));
10991099
return true;

0 commit comments

Comments
 (0)