Skip to content

Commit 964a148

Browse files
authored
Merge pull request #858 from craigjb/master
Fix high DPI scaling on macOS
2 parents e7b29b4 + b576c36 commit 964a148

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)