Skip to content

Commit

Permalink
Merge pull request #76031 from db48x/fix-imtui-rendering
Browse files Browse the repository at this point in the history
fix ImTui rendering by defining the IMTUI define
  • Loading branch information
Maleclypse authored Aug 30, 2024
2 parents 59dbdcf + c6337b2 commit e19eb7e
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -962,11 +962,11 @@ SOURCES += $(THIRD_PARTY_SOURCES)
IMGUI_SOURCES = $(IMGUI_DIR)/imgui.cpp $(IMGUI_DIR)/imgui_demo.cpp $(IMGUI_DIR)/imgui_draw.cpp $(IMGUI_DIR)/imgui_tables.cpp $(IMGUI_DIR)/imgui_widgets.cpp

ifeq ($(SDL), 1)
OTHERS += -DIMGUI_DISABLE_OBSOLETE_KEYIO
DEFINES += -DIMGUI_DISABLE_OBSOLETE_KEYIO
IMGUI_SOURCES += $(IMGUI_DIR)/imgui_impl_sdl2.cpp $(IMGUI_DIR)/imgui_impl_sdlrenderer2.cpp
else
IMGUI_SOURCES += $(IMTUI_DIR)/imtui-impl-ncurses.cpp $(IMTUI_DIR)/imtui-impl-text.cpp
OTHERS += -DIMTUI
DEFINES += -DIMTUI
endif

SOURCES += $(IMGUI_SOURCES)
Expand Down

0 comments on commit e19eb7e

Please sign in to comment.