Skip to content

Commit b576c36

Browse files
committed
Fix high DPI scaling on macOS
1 parent dd837f7 commit b576c36

1 file changed

Lines changed: 2 additions & 3 deletions

File tree

src/ngscopeclient/VulkanWindow.cpp

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -189,9 +189,8 @@ VulkanWindow::VulkanWindow(const string& title, shared_ptr<QueueHandle> queue)
189189

190190
//WORKAROUND: handle HiDPI correctly on macOS.
191191
//This is probably wrong, per comment in imgui_impl_glfw "Apple platforms use FramebufferScale"
192-
#ifdef __APPLE__
193-
io.FontGlobalScale = 1.0f / scale;
194-
#else
192+
//On macOS, setting FontScaleMain appears to double the scaling
193+
#ifndef __APPLE__
195194
ImGui::GetStyle().FontScaleMain = scale;
196195
#endif
197196

0 commit comments

Comments
 (0)