aboutsummaryrefslogtreecommitdiff
path: root/src/core
diff options
context:
space:
mode:
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()