Skip to content

Commit

Permalink
GUI: fix hitbox issue in sys picker
Browse files Browse the repository at this point in the history
  • Loading branch information
tildearrow committed Nov 11, 2024
1 parent 6f61f66 commit ffba0da
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/gui/sysPicker.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,7 @@ DivSystem FurnaceGUI::systemPicker(bool fullWidth) {
ImGui::TableNextRow();
ImGui::TableNextColumn();
if (ImGui::Selectable(e->getSystemName((DivSystem)curSysSection[j]),false,0,ImVec2(500.0f*dpiScale,0.0f))) ret=(DivSystem)curSysSection[j];
if (ImGui::IsItemHovered()) {
if (ImGui::IsItemHovered() && hoveredSys==DIV_SYSTEM_NULL) {
hoveredSys=(DivSystem)curSysSection[j];
}
}
Expand All @@ -80,7 +80,7 @@ DivSystem FurnaceGUI::systemPicker(bool fullWidth) {
ImGui::TableNextRow();
ImGui::TableNextColumn();
if (ImGui::Selectable(e->getSystemName(i),false,0,ImVec2(500.0f*dpiScale,0.0f))) ret=i;
if (ImGui::IsItemHovered()) {
if (ImGui::IsItemHovered() && hoveredSys==DIV_SYSTEM_NULL) {
hoveredSys=i;
}
}
Expand Down

0 comments on commit ffba0da

Please sign in to comment.