Skip to content

Commit

Permalink
update ImGui to 1.90.5
Browse files Browse the repository at this point in the history
  • Loading branch information
wootguy committed Apr 24, 2024
1 parent 7ba271c commit dbbe0af
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 5 deletions.
2 changes: 1 addition & 1 deletion CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -199,7 +199,7 @@ if(MSVC)
src/util/lodepng.cpp)

else()
target_link_libraries(${PROJECT_NAME} GL GLU X11 Xxf86vm Xrandr pthread Xi GLEW stdc++fs)
target_link_libraries(${PROJECT_NAME} GL GLU X11 Xxf86vm Xrandr pthread Xi GLEW stdc++fs ${CMAKE_DL_LIBS})
set(CMAKE_CXX_FLAGS "-Wall -std=c++11")
set(CMAKE_CXX_FLAGS_DEBUG "-g -O0")
set(CMAKE_CXX_FLAGS_RELEASE "-Os -fno-exceptions -w -Wfatal-errors")
Expand Down
2 changes: 1 addition & 1 deletion imgui
Submodule imgui updated 209 files
7 changes: 4 additions & 3 deletions src/editor/Gui.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -3283,7 +3283,8 @@ void Gui::drawEntityReport() {
static vector<int> visibleEnts;
static vector<bool> selectedItems;

const ImGuiKeyModFlags expected_key_mod_flags = ImGui::GetMergedKeyModFlags();
ImGuiIO& io = ImGui::GetIO();
const ImGuiModFlags expected_key_mod_flags = io.KeyMods;

int footerHeight = ImGui::GetFrameHeightWithSpacing() * 5 + 16;
ImGui::BeginChild("entlist", ImVec2(0, -footerHeight));
Expand Down Expand Up @@ -3371,11 +3372,11 @@ void Gui::drawEntityReport() {
string cname = ent->keyvalues["classname"];

if (ImGui::Selectable((cname + "##ent" + to_string(i)).c_str(), selectedItems[i], ImGuiSelectableFlags_AllowDoubleClick)) {
if (expected_key_mod_flags & ImGuiKeyModFlags_Ctrl) {
if (expected_key_mod_flags & ImGuiModFlags_Ctrl) {
selectedItems[i] = !selectedItems[i];
lastSelect = i;
}
else if (expected_key_mod_flags & ImGuiKeyModFlags_Shift) {
else if (expected_key_mod_flags & ImGuiModFlags_Shift) {
if (lastSelect >= 0) {
int begin = i > lastSelect ? lastSelect : i;
int end = i > lastSelect ? i : lastSelect;
Expand Down

0 comments on commit dbbe0af

Please sign in to comment.