Skip to content

Commit

Permalink
gimgui fix attempt4
Browse files Browse the repository at this point in the history
  • Loading branch information
cropinghigh committed Dec 2, 2024
1 parent 3ccc4e0 commit d643db5
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 7 deletions.
2 changes: 2 additions & 0 deletions src/gui_widgets.h
Original file line number Diff line number Diff line change
@@ -1,4 +1,6 @@
#pragma once
#define GImGui (ImGui::GetCurrentContext())

#include <imgui/imgui.h>

#ifndef IMGUI_DEFINE_MATH_OPERATORS
Expand Down
9 changes: 2 additions & 7 deletions src/main.cpp
Original file line number Diff line number Diff line change
@@ -1,11 +1,6 @@
#include <imgui.h>

#ifdef _WIN32
extern __declspec(dllimport) ImGuiContext* GImGui;
#else
extern ImGuiContext* GImGui;
#endif
#define GImGui (ImGui::GetCurrentContext())

#include <imgui.h>
#include <config.h>
#include <core.h>
#include <gui/style.h>
Expand Down

0 comments on commit d643db5

Please sign in to comment.