Skip to content

Commit

Permalink
Fix minimum_height not scaled with dpi_scale like minimum_width (#1980)
Browse files Browse the repository at this point in the history
  • Loading branch information
agorgl authored Jul 4, 2024
1 parent b0e2ec4 commit 49ca67d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/conky.cc
Original file line number Diff line number Diff line change
Expand Up @@ -862,7 +862,7 @@ void update_text_area() {
last_font_height = font_height();
for_each_line(text_buffer, text_size_updater);

text_size = text_size.max(conky::vec2i(text_size.x() + 1, minimum_height.get(*state)));
text_size = text_size.max(conky::vec2i(text_size.x() + 1, dpi_scale(minimum_height.get(*state))));
int mw = dpi_scale(maximum_width.get(*state));
if (mw > 0) text_size = text_size.min(conky::vec2i(mw, text_size.y()));
}
Expand Down

0 comments on commit 49ca67d

Please sign in to comment.