diff options
author | Scott Anderson <ascent12@hotmail.com> | 2017-06-05 22:48:51 +1200 |
---|---|---|
committer | Scott Anderson <ascent12@hotmail.com> | 2017-06-05 22:48:51 +1200 |
commit | c97de93fe1a3fca3e881e1178a3be1b981268cd3 (patch) | |
tree | efb848dfb5c71b3ac2de5d96ea07fd4011c9230c /backend/drm | |
parent | 6298351d8346482563c8bd6cb628c2293901daf4 (diff) |
Added output rotation example
Diffstat (limited to 'backend/drm')
-rw-r--r-- | backend/drm/drm.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/backend/drm/drm.c b/backend/drm/drm.c index 2523eaf0..6f753af2 100644 --- a/backend/drm/drm.c +++ b/backend/drm/drm.c @@ -233,8 +233,8 @@ static bool wlr_drm_output_set_mode(struct wlr_output_state *output, } output->state = DRM_OUTPUT_CONNECTED; - output->width = mode->width; - output->height = mode->height; + output->width = output->wlr_output->width = mode->width; + output->height = output->wlr_output->height = mode->height; output->wlr_output->current_mode = mode; if (!display_init_renderer(&state->renderer, output)) { @@ -363,6 +363,7 @@ void wlr_drm_scan_connectors(struct wlr_backend_state *state) { output->connector = id; // TODO: Populate more wlr_output fields // TODO: Move this to wlr_output->name + wlr_output->name = output->name; snprintf(output->name, sizeof(output->name), "%s-%"PRIu32, conn_name[conn->connector_type], conn->connector_type_id); |