mirror of
https://gitlab.freedesktop.org/wlroots/wlroots.git
synced 2025-11-04 13:29:45 -05:00
output: add output_pending_image_description()
This commit is contained in:
parent
e76f8ac2b3
commit
2498036e67
2 changed files with 10 additions and 0 deletions
|
|
@ -8,6 +8,8 @@ void output_pending_resolution(struct wlr_output *output,
|
||||||
const struct wlr_output_state *state, int *width, int *height);
|
const struct wlr_output_state *state, int *width, int *height);
|
||||||
bool output_pending_enabled(struct wlr_output *output,
|
bool output_pending_enabled(struct wlr_output *output,
|
||||||
const struct wlr_output_state *state);
|
const struct wlr_output_state *state);
|
||||||
|
const struct wlr_output_image_description *output_pending_image_description(
|
||||||
|
struct wlr_output *output, const struct wlr_output_state *state);
|
||||||
|
|
||||||
bool output_pick_format(struct wlr_output *output,
|
bool output_pick_format(struct wlr_output *output,
|
||||||
const struct wlr_drm_format_set *display_formats,
|
const struct wlr_drm_format_set *display_formats,
|
||||||
|
|
|
||||||
|
|
@ -500,6 +500,14 @@ bool output_pending_enabled(struct wlr_output *output,
|
||||||
return output->enabled;
|
return output->enabled;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
const struct wlr_output_image_description *output_pending_image_description(
|
||||||
|
struct wlr_output *output, const struct wlr_output_state *state) {
|
||||||
|
if (state->committed & WLR_OUTPUT_STATE_IMAGE_DESCRIPTION) {
|
||||||
|
return state->image_description;
|
||||||
|
}
|
||||||
|
return output->image_description;
|
||||||
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Compare a struct wlr_output_state with the current state of a struct
|
* Compare a struct wlr_output_state with the current state of a struct
|
||||||
* wlr_output.
|
* wlr_output.
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue