diff options
Diffstat (limited to 'src/backends/native/meta-crtc-virtual.c')
-rw-r--r-- | src/backends/native/meta-crtc-virtual.c | 31 |
1 files changed, 31 insertions, 0 deletions
diff --git a/src/backends/native/meta-crtc-virtual.c b/src/backends/native/meta-crtc-virtual.c index 60b59a3f2..e8a389218 100644 --- a/src/backends/native/meta-crtc-virtual.c +++ b/src/backends/native/meta-crtc-virtual.c @@ -38,6 +38,33 @@ meta_crtc_virtual_new (uint64_t id) NULL); } +static void +meta_crtc_virtual_get_gamma_lut (MetaCrtc *crtc, + size_t *size, + unsigned short **red, + unsigned short **green, + unsigned short **blue) +{ + if (size) + *size = 0; + if (red) + *red = NULL; + if (green) + *green = NULL; + if (blue) + *blue = NULL; +} + +static void +meta_crtc_virtual_set_gamma_lut (MetaCrtc *crtc, + size_t size, + unsigned short *red, + unsigned short *green, + unsigned short *blue) +{ + g_warn_if_reached (); +} + static gboolean meta_crtc_virtual_is_transform_handled (MetaCrtcNative *crtc_native, MetaMonitorTransform transform) @@ -59,8 +86,12 @@ meta_crtc_virtual_init (MetaCrtcVirtual *crtc_virtual) static void meta_crtc_virtual_class_init (MetaCrtcVirtualClass *klass) { + MetaCrtcClass *crtc_class = META_CRTC_CLASS (klass); MetaCrtcNativeClass *crtc_native_class = META_CRTC_NATIVE_CLASS (klass); + crtc_class->get_gamma_lut = meta_crtc_virtual_get_gamma_lut; + crtc_class->set_gamma_lut = meta_crtc_virtual_set_gamma_lut; + crtc_native_class->is_transform_handled = meta_crtc_virtual_is_transform_handled; crtc_native_class->is_hw_cursor_supported = |