mirror of
https://github.com/brl/mutter.git
synced 2025-01-23 01:48:55 +00:00
backends/native: Expose all transform modes in CRTCs
We can only honor this properly in the MUTTER_STAGE_VIEWS=1 case. When using the legacy view, software implemented transforms are only exposed if there is only one output, as we can only transform the entire stage there. https://bugzilla.gnome.org/show_bug.cgi?id=745079
This commit is contained in:
parent
9e641f623f
commit
9fb4783957
@ -46,6 +46,7 @@
|
|||||||
#include <gudev/gudev.h>
|
#include <gudev/gudev.h>
|
||||||
|
|
||||||
#define ALL_TRANSFORMS (META_MONITOR_TRANSFORM_FLIPPED_270 + 1)
|
#define ALL_TRANSFORMS (META_MONITOR_TRANSFORM_FLIPPED_270 + 1)
|
||||||
|
#define ALL_TRANSFORMS_MASK ((1 << ALL_TRANSFORMS) - 1)
|
||||||
|
|
||||||
typedef struct {
|
typedef struct {
|
||||||
drmModeConnector *connector;
|
drmModeConnector *connector;
|
||||||
@ -626,8 +627,8 @@ init_crtc (MetaCRTC *crtc,
|
|||||||
crtc->rect.height = drm_crtc->height;
|
crtc->rect.height = drm_crtc->height;
|
||||||
crtc->is_dirty = FALSE;
|
crtc->is_dirty = FALSE;
|
||||||
crtc->transform = META_MONITOR_TRANSFORM_NORMAL;
|
crtc->transform = META_MONITOR_TRANSFORM_NORMAL;
|
||||||
/* FIXME: implement! */
|
crtc->all_transforms = meta_is_stage_views_enabled () ?
|
||||||
crtc->all_transforms = 1 << META_MONITOR_TRANSFORM_NORMAL;
|
ALL_TRANSFORMS_MASK : META_MONITOR_TRANSFORM_NORMAL;
|
||||||
|
|
||||||
if (drm_crtc->mode_valid)
|
if (drm_crtc->mode_valid)
|
||||||
{
|
{
|
||||||
|
Loading…
x
Reference in New Issue
Block a user