From d2705988ac88deba0697705cd95638874cee7af8 Mon Sep 17 00:00:00 2001 From: WerWolv Date: Sat, 5 Nov 2022 21:49:17 +0100 Subject: [PATCH] ui: Potentially fix weird scaling on macOS --- main/source/init/splash_window.cpp | 1 + main/source/window/window.cpp | 1 + 2 files changed, 2 insertions(+) diff --git a/main/source/init/splash_window.cpp b/main/source/init/splash_window.cpp index 24184e667..4f301bc28 100644 --- a/main/source/init/splash_window.cpp +++ b/main/source/init/splash_window.cpp @@ -186,6 +186,7 @@ namespace hex::init { glfwWindowHint(GLFW_TRANSPARENT_FRAMEBUFFER, GLFW_TRUE); glfwWindowHint(GLFW_DECORATED, GLFW_FALSE); glfwWindowHint(GLFW_FLOATING, GLFW_FALSE); + glfwWindowHint(GLFW_COCOA_RETINA_FRAMEBUFFER, GLFW_FALSE); this->m_window = glfwCreateWindow(1, 400, "Starting ImHex...", nullptr, nullptr); if (this->m_window == nullptr) { diff --git a/main/source/window/window.cpp b/main/source/window/window.cpp index ad77438c9..202630971 100644 --- a/main/source/window/window.cpp +++ b/main/source/window/window.cpp @@ -532,6 +532,7 @@ namespace hex { glfwWindowHint(GLFW_CONTEXT_VERSION_MAJOR, 3); glfwWindowHint(GLFW_CONTEXT_VERSION_MINOR, 2); glfwWindowHint(GLFW_OPENGL_PROFILE, GLFW_OPENGL_CORE_PROFILE); + glfwWindowHint(GLFW_COCOA_RETINA_FRAMEBUFFER, GLFW_FALSE); #else glfwWindowHint(GLFW_CONTEXT_VERSION_MAJOR, 3); glfwWindowHint(GLFW_CONTEXT_VERSION_MINOR, 0);