display: Adapt to new Mutter interface with scaling per mode
New Mutter GetCurrentState now provides a list of available scales, we need to use these values in order to define an UI that shows them all.
This commit is contained in:
parent
a23aa64ec7
commit
cca9663d87
5 changed files with 191 additions and 93 deletions
|
@ -39,6 +39,18 @@ cc_display_mode_get_resolution (CcDisplayMode *self, int *w, int *h)
|
|||
return CC_DISPLAY_MODE_GET_CLASS (self)->get_resolution (self, w, h);
|
||||
}
|
||||
|
||||
const double *
|
||||
cc_display_mode_get_supported_scales (CcDisplayMode *self)
|
||||
{
|
||||
return CC_DISPLAY_MODE_GET_CLASS (self)->get_supported_scales (self);
|
||||
}
|
||||
|
||||
double
|
||||
cc_display_mode_get_preferred_scale (CcDisplayMode *self)
|
||||
{
|
||||
return CC_DISPLAY_MODE_GET_CLASS (self)->get_preferred_scale (self);
|
||||
}
|
||||
|
||||
gboolean
|
||||
cc_display_mode_is_interlaced (CcDisplayMode *self)
|
||||
{
|
||||
|
@ -272,12 +284,6 @@ cc_display_config_get_cloning_modes (CcDisplayConfig *self)
|
|||
return CC_DISPLAY_CONFIG_GET_CLASS (self)->get_cloning_modes (self);
|
||||
}
|
||||
|
||||
const double *
|
||||
cc_display_config_get_supported_scales (CcDisplayConfig *self)
|
||||
{
|
||||
return CC_DISPLAY_CONFIG_GET_CLASS (self)->get_supported_scales (self);
|
||||
}
|
||||
|
||||
gboolean
|
||||
cc_display_config_is_layout_logical (CcDisplayConfig *self)
|
||||
{
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue