aboutsummaryrefslogtreecommitdiff
path: root/src/core
diff options
context:
space:
mode:
authorhachem <im@hachem.wtf>2026-09-05 19:52:33 +0200
committerhachem <im@hachem.wtf>2026-09-05 19:52:33 +0200
commita92a298684d6e6d497ab7bef98ff1e380a707503 (patch)
treef8df1f67532e90b9635d775d5a9aa87e0dcf0e09 /src/core
parentc0302d681459214f9c2a845edb64b7f14d213f6a (diff)
feat: ui refactor of doom and despair
Diffstat (limited to 'src/core')
-rw-r--r--src/core/window.cpp8
1 files changed, 6 insertions, 2 deletions
diff --git a/src/core/window.cpp b/src/core/window.cpp
index a87798a..73a57ad 100644
--- a/src/core/window.cpp
+++ b/src/core/window.cpp
@@ -63,12 +63,16 @@ namespace Hsdbg
m_framebuffer_width = static_cast<uint32_t>(framebuffer_width);
m_framebuffer_height = static_cast<uint32_t>(framebuffer_height);
- Log::info("window '{}' created at {}x{} ({}x{} framebuffer)",
+ float content_scale = 1.0f;
+ glfwGetWindowContentScale(m_handle, &content_scale, nullptr);
+
+ Log::info("window '{}' created at {}x{} ({}x{} framebuffer, {}x content scale)",
m_title,
m_width,
m_height,
m_framebuffer_width,
- m_framebuffer_height);
+ m_framebuffer_height,
+ content_scale);
}
Window::~Window()