File tree Expand file tree Collapse file tree 2 files changed +2
-5
lines changed
Expand file tree Collapse file tree 2 files changed +2
-5
lines changed Original file line number Diff line number Diff line change @@ -298,11 +298,7 @@ void Player::loadFonts() {
298298 if (config->Data .Mpv .UseWid ) io.ConfigViewportsNoAutoMerge = true ;
299299#endif
300300
301- #ifdef __APPLE__
302- io.FontGlobalScale = 1 .0f / scale;
303- #else
304301 style.ScaleAllSizes (scale);
305- #endif
306302 ImGui::GetStyle () = style;
307303
308304 io.Fonts ->Clear ();
Original file line number Diff line number Diff line change @@ -442,8 +442,9 @@ void Debug::Console::draw() {
442442 auto item = Items[i];
443443 if (!Filter.PassFilter (item.Str )) continue ;
444444
445+ auto font = ImGui::GetIO ().Fonts ->Fonts [item.FontIdx ];
446+ ImGui::PushFont (font, font->LegacySize );
445447 ImGui::PushStyleColor (ImGuiCol_Text, LogColor (item.Lev ));
446- ImGui::PushFont (ImGui::GetIO ().Fonts ->Fonts [item.FontIdx ]);
447448 ImGui::TextUnformatted (item.Str );
448449 ImGui::PopFont ();
449450 ImGui::PopStyleColor ();
You can’t perform that action at this time.
0 commit comments