mirror of
https://gitlab.freedesktop.org/wlroots/wlroots.git
synced 2025-10-29 05:40:12 -04:00
output: expose output_apply_state() to header
- need a way to apply the work of commit without side-effects - related to8f67446cc7andf042de3f51
This commit is contained in:
parent
7431d840d0
commit
a1ddc25b45
2 changed files with 2 additions and 1 deletions
|
|
@ -28,6 +28,7 @@ void output_defer_present(struct wlr_output *output, struct wlr_output_event_pre
|
|||
bool output_prepare_commit(struct wlr_output *output, const struct wlr_output_state *state);
|
||||
void output_apply_commit(struct wlr_output *output, const struct wlr_output_state *state);
|
||||
void output_send_commit_event(struct wlr_output *output, const struct wlr_output_state *state);
|
||||
void output_apply_state(struct wlr_output *output, const struct wlr_output_state *state);
|
||||
|
||||
void output_state_get_buffer_src_box(const struct wlr_output_state *state,
|
||||
struct wlr_fbox *out);
|
||||
|
|
|
|||
|
|
@ -210,7 +210,7 @@ void wlr_output_set_description(struct wlr_output *output, const char *desc) {
|
|||
wl_signal_emit_mutable(&output->events.description, output);
|
||||
}
|
||||
|
||||
static void output_apply_state(struct wlr_output *output,
|
||||
void output_apply_state(struct wlr_output *output,
|
||||
const struct wlr_output_state *state) {
|
||||
if (state->committed & WLR_OUTPUT_STATE_RENDER_FORMAT) {
|
||||
output->render_format = state->render_format;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue