Skip to content

Commit

Permalink
chore: minor variable rewording
Browse files Browse the repository at this point in the history
  • Loading branch information
stacyharper authored and Cloudef committed Nov 21, 2023
1 parent 62657f8 commit 4ee128c
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions lib/renderers/wayland/wayland.c
Original file line number Diff line number Diff line change
Expand Up @@ -479,15 +479,15 @@ void
window_update_output(struct window *window)
{
int32_t max_scale = 1;
uint32_t max_height = 0;
uint32_t min_max_height = 0;

struct surf_output *surf_output;
wl_list_for_each(surf_output, &window->surf_outputs, link) {
if (surf_output->output->scale > max_scale) {
max_scale = surf_output->output->scale;
}
if (max_height == 0 || surf_output->output->height < max_height) {
max_height = surf_output->output->height;
if (min_max_height == 0 || surf_output->output->height < min_max_height) {
min_max_height = surf_output->output->height;
};
}

Expand All @@ -496,8 +496,8 @@ window_update_output(struct window *window)
max_scale = fmax(strtof(scale, NULL), 1.0f);
}

if (max_height != window->max_height) {
window->max_height = max_height;
if (min_max_height != window->max_height) {
window->max_height = min_max_height;
}

if (max_scale != window->scale) {
Expand Down

0 comments on commit 4ee128c

Please sign in to comment.