diff options
| author | hachem <im@hachem.wtf> | 2026-04-01 19:52:33 +0200 |
|---|---|---|
| committer | hachem <im@hachem.wtf> | 2026-04-01 19:52:33 +0200 |
| commit | 15b9b273247099ba0eac75a5769592bf7bcb89dc (patch) | |
| tree | 0a12fe8fa1b6d622361f41445eb7d4fee6b3c06a /src/core | |
| parent | 22f3bf683913451b38a3bdc3a7992022a0e805bf (diff) | |
feat: ui refactor of doom and despair
Diffstat (limited to 'src/core')
| -rw-r--r-- | src/core/window.cpp | 8 |
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() |
