mirror of
https://github.com/labwc/labwc.git
synced 2025-10-29 05:40:24 -04:00
Remove unused function output_max_scale()
This commit is contained in:
parent
0bf2678f9d
commit
139a5f0383
2 changed files with 0 additions and 21 deletions
|
|
@ -70,11 +70,4 @@ void handle_output_power_manager_set_mode(struct wl_listener *listener,
|
||||||
void *data);
|
void *data);
|
||||||
void output_enable_adaptive_sync(struct output *output, bool enabled);
|
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
|
#endif // LABWC_OUTPUT_H
|
||||||
|
|
|
||||||
14
src/output.c
14
src/output.c
|
|
@ -1142,17 +1142,3 @@ output_enable_adaptive_sync(struct output *output, bool enabled)
|
||||||
enabled ? "en" : "dis", output->wlr_output->name);
|
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;
|
|
||||||
}
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue