Skip to content

Commit b21bafa

Browse files
authored
adjust hi-dpi policies to do the right thing on macOS (#348)
* rework high-dpi handling for macOS * always start with default style in config * fix unused variable
1 parent 178780d commit b21bafa

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

src/imgui_config.cpp

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -85,7 +85,9 @@ std::tuple<ImFontAtlas*, ImFont*, ImFont*> prepareImGuiFonts() {
8585
ImVec2 imguiCoordScale = {bufferSize.x / windowSize.x, bufferSize.y / windowSize.y};
8686

8787
// outputs
88-
ImFontAtlas* fontAtlas;
88+
ImFontAtlas* fontAtlas = nullptr; // right now this is unused by the caller, but I don't want to change
89+
// this callback signature until I'm more confident about how this
90+
// should work. (And it might be changing in an upcoming imgui version)
8991
ImFont* regularFont;
9092
ImFont* monoFont;
9193

0 commit comments

Comments
 (0)