Skip to content

Commit

Permalink
Improve font size selection a bit.
Browse files Browse the repository at this point in the history
  • Loading branch information
john-preston committed May 1, 2024
1 parent 12a24dd commit 47800ee
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions Telegram/SourceFiles/ui/boxes/choose_font_box.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -314,6 +314,7 @@ void Selector::validateCache(Entry &row) {
} else if (row.paletteVersion == version) {
return;
}
row.paletteVersion = version;
row.cache.fill(Qt::transparent);
auto font = style::ResolveFont(row.id, 0, st::boxFontSize);
auto p = QPainter(&row.cache);
Expand Down
2 changes: 1 addition & 1 deletion Telegram/lib_ui

0 comments on commit 47800ee

Please sign in to comment.