mirror of https://github.com/WerWolv/ImHex.git
sys: Fixed compile issue on non-Windows
This commit is contained in:
parent
be37228dc6
commit
0f8ac672f3
|
@ -128,7 +128,6 @@ struct ImGui_ImplGlfw_Data
|
|||
bool WantUpdateMonitors;
|
||||
#ifdef _WIN32
|
||||
WNDPROC GlfwWndProc;
|
||||
bool BorderlessWindow; // IMHEX PATCH
|
||||
#endif
|
||||
|
||||
// Chain GLFW callbacks: our callbacks will call the user's previously installed callbacks, if any.
|
||||
|
@ -140,6 +139,7 @@ struct ImGui_ImplGlfw_Data
|
|||
GLFWkeyfun PrevUserCallbackKey;
|
||||
GLFWcharfun PrevUserCallbackChar;
|
||||
GLFWmonitorfun PrevUserCallbackMonitor;
|
||||
bool BorderlessWindow; // IMHEX PATCH
|
||||
|
||||
ImGui_ImplGlfw_Data() { memset((void*)this, 0, sizeof(*this)); }
|
||||
};
|
||||
|
|
|
@ -13,6 +13,8 @@
|
|||
#include <sys/wait.h>
|
||||
#include <unistd.h>
|
||||
|
||||
#include <imgui_impl_glfw.h>
|
||||
|
||||
namespace hex {
|
||||
|
||||
void Window::initNative() {
|
||||
|
@ -22,6 +24,8 @@ namespace hex {
|
|||
}
|
||||
|
||||
void Window::setupNativeWindow() {
|
||||
ImGui_ImplGlfw_SetBorderlessWindowMode(false);
|
||||
|
||||
bool themeFollowSystem = ImHexApi::System::usesSystemThemeDetection();
|
||||
EventManager::subscribe<EventOSThemeChanged>(this, [themeFollowSystem] {
|
||||
if (!themeFollowSystem) return;
|
||||
|
|
|
@ -12,6 +12,8 @@
|
|||
#include <nlohmann/json.hpp>
|
||||
#include <unistd.h>
|
||||
|
||||
#include <imgui_impl_glfw.h>
|
||||
|
||||
namespace hex {
|
||||
|
||||
void Window::initNative() {
|
||||
|
@ -21,6 +23,8 @@ namespace hex {
|
|||
}
|
||||
|
||||
void Window::setupNativeWindow() {
|
||||
ImGui_ImplGlfw_SetBorderlessWindowMode(false);
|
||||
|
||||
bool themeFollowSystem = ImHexApi::System::usesSystemThemeDetection();
|
||||
EventManager::subscribe<EventOSThemeChanged>(this, [themeFollowSystem] {
|
||||
if (!themeFollowSystem) return;
|
||||
|
|
Loading…
Reference in New Issue