Skip to content

Commit b50d163

Browse files
committed
remove usage of obsolete APIs
1 parent 98e9179 commit b50d163

File tree

2 files changed

+2
-5
lines changed

2 files changed

+2
-5
lines changed

source/player.cpp

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff 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();

source/views/debug.cpp

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff 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();

0 commit comments

Comments
 (0)