mirror of
https://gitlab.freedesktop.org/wlroots/wlroots.git
synced 2026-02-06 04:06:11 -05:00
add initial wlr_output_set_format() function
This commit is contained in:
parent
9ade689ca0
commit
a801e1cccb
1 changed files with 9 additions and 0 deletions
|
|
@ -267,6 +267,15 @@ void wlr_output_set_subpixel(struct wlr_output *output,
|
|||
wlr_output_schedule_done(output);
|
||||
}
|
||||
|
||||
void wlr_output_set_format(struct wlr_output *output,
|
||||
enum wl_shm_format format) {
|
||||
if (output->format == format) {
|
||||
return;
|
||||
}
|
||||
|
||||
output->format = format;
|
||||
}
|
||||
|
||||
void wlr_output_set_description(struct wlr_output *output, const char *desc) {
|
||||
if (output->description != NULL && desc != NULL &&
|
||||
strcmp(output->description, desc) == 0) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue