hachem.wtf
aboutsummaryrefslogtreecommitdiff
path: root/src/core/window.cpp
diff options
context:
space:
mode:
authorhachem <im@hachem.wtf>2026-04-01 19:52:33 +0200
committerhachem <im@hachem.wtf>2026-04-01 19:52:33 +0200
commit15b9b273247099ba0eac75a5769592bf7bcb89dc (patch)
tree0a12fe8fa1b6d622361f41445eb7d4fee6b3c06a /src/core/window.cpp
parent22f3bf683913451b38a3bdc3a7992022a0e805bf (diff)
feat: ui refactor of doom and despair
Diffstat (limited to 'src/core/window.cpp')
-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()