Skip to content

Commit

Permalink
fix lint
Browse files Browse the repository at this point in the history
  • Loading branch information
igagis committed Jun 13, 2024
1 parent 62f0133 commit 579b072
Showing 1 changed file with 4 additions and 8 deletions.
12 changes: 4 additions & 8 deletions src/ruisapp/glue/linux/glue_wayland.cxx
Original file line number Diff line number Diff line change
Expand Up @@ -1134,8 +1134,7 @@ struct surface_wrapper {
return {};
}

uint32_t max_scale;
float dpi;
scale_and_dpi max_sd;

// go through outputs which the surface has entered
for (auto wlo : this->outputs) {
Expand All @@ -1160,14 +1159,11 @@ struct surface_wrapper {
o << " output found, scale = " << output.scale << std::endl;
})

max_scale = std::max(output.scale, max_scale);
dpi = output.get_dpi();
max_sd.scale = std::max(output.scale, max_sd.scale);
max_sd.dpi = output.get_dpi();
}

return {
.scale = max_scale, //
.dpi = dpi
};
return max_sd;
}

private:
Expand Down

0 comments on commit 579b072

Please sign in to comment.