diff options
author | Ilia Bozhinov <ammen99@gmail.com> | 2019-04-08 10:51:13 +0300 |
---|---|---|
committer | Drew DeVault <sir@cmpwn.com> | 2019-04-08 08:14:10 -0600 |
commit | 670c787fa7c8e71ed4966ae12fa70c91751eea21 (patch) | |
tree | da66a897cf762e6132ab6d1b1b697f7edc486f4e /backend/noop | |
parent | fd0d7d0907fcb8783c4bd2fbbd8c8812f3ba1494 (diff) |
noop: implement setting a custom mode
Diffstat (limited to 'backend/noop')
-rw-r--r-- | backend/noop/output.c | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/backend/noop/output.c b/backend/noop/output.c index 14ba5ed0..a4070383 100644 --- a/backend/noop/output.c +++ b/backend/noop/output.c @@ -17,6 +17,12 @@ static void output_transform(struct wlr_output *wlr_output, // empty } +static bool output_set_custom_mode(struct wlr_output *wlr_output, + int32_t width, int32_t height, int32_t refresh) { + wlr_output_update_custom_mode(wlr_output, width, height, refresh); + return true; +} + static bool output_make_current(struct wlr_output *wlr_output, int *buffer_age) { return true; } @@ -37,6 +43,7 @@ static void output_destroy(struct wlr_output *wlr_output) { static const struct wlr_output_impl output_impl = { .transform = output_transform, + .set_custom_mode = output_set_custom_mode, .destroy = output_destroy, .make_current = output_make_current, .swap_buffers = output_swap_buffers, |