ssd: minor logic simplification

No functional change intended
This commit is contained in:
Johan Malm 2024-10-08 21:27:19 +01:00
parent e16e78e7a4
commit 707c188975

View file

@ -609,7 +609,7 @@ ssd_update_window_icon(struct ssd *ssd)
*/ */
int hpad = theme->window_button_width / 10; int hpad = theme->window_button_width / 10;
int icon_size = MIN(theme->window_button_width - 2 * hpad, int icon_size = MIN(theme->window_button_width - 2 * hpad,
theme->title_height - 2 * theme->window_titlebar_padding_height); theme->window_button_height);
/* /*
* Load/render icons at the max scale of any usable output (at * Load/render icons at the max scale of any usable output (at