void *data);
void output_enable_adaptive_sync(struct output *output, bool enabled);
-/**
- * output_max_scale() - get maximum scale factor of all usable outputs.
- * Used when loading/rendering resources (e.g. icons) that may be
- * displayed on any output.
- */
-float output_max_scale(struct server *server);
-
#endif // LABWC_OUTPUT_H
enabled ? "en" : "dis", output->wlr_output->name);
}
}
-
-float
-output_max_scale(struct server *server)
-{
- /* Never return less than 1, in case outputs are disabled */
- float scale = 1;
- struct output *output;
- wl_list_for_each(output, &server->outputs, link) {
- if (output_is_usable(output)) {
- scale = MAX(scale, output->wlr_output->scale);
- }
- }
- return scale;
-}