mirror of
https://gitlab.freedesktop.org/wlroots/wlroots.git
synced 2026-04-17 06:46:39 -04:00
Merge branch 'master_rotate' into 'master'
backend/drm: Ensure plane rotation is always reset See merge request wlroots/wlroots!4508
This commit is contained in:
commit
9b24b73336
1 changed files with 2 additions and 0 deletions
|
|
@ -351,6 +351,8 @@ static void set_plane_props(struct atomic *atom, struct wlr_drm_backend *drm,
|
||||||
atomic_add(atom, id, props->crtc_id, crtc_id);
|
atomic_add(atom, id, props->crtc_id, crtc_id);
|
||||||
atomic_add(atom, id, props->crtc_x, (uint64_t)x);
|
atomic_add(atom, id, props->crtc_x, (uint64_t)x);
|
||||||
atomic_add(atom, id, props->crtc_y, (uint64_t)y);
|
atomic_add(atom, id, props->crtc_y, (uint64_t)y);
|
||||||
|
if (plane->props.rotation)
|
||||||
|
atomic_add(atom, id, props->rotation, DRM_MODE_ROTATE_0);
|
||||||
}
|
}
|
||||||
|
|
||||||
static bool supports_cursor_hotspots(const struct wlr_drm_plane* plane) {
|
static bool supports_cursor_hotspots(const struct wlr_drm_plane* plane) {
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue