mirror of
https://github.com/brl/mutter.git
synced 2024-11-25 01:20:42 -05:00
monitor: Add meta_monitor_get_min_refresh_rate()
This function gets the minimum refresh rate of the monitor's main output. Part-of: <https://gitlab.gnome.org/GNOME/mutter/-/merge_requests/3576>
This commit is contained in:
parent
cb40a1c510
commit
a53c02bba5
@ -2274,6 +2274,17 @@ meta_monitor_set_privacy_screen_enabled (MetaMonitor *monitor,
|
|||||||
return meta_output_set_privacy_screen_enabled (output, enabled, error);
|
return meta_output_set_privacy_screen_enabled (output, enabled, error);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
gboolean
|
||||||
|
meta_monitor_get_min_refresh_rate (MetaMonitor *monitor,
|
||||||
|
int *min_refresh_rate)
|
||||||
|
{
|
||||||
|
const MetaOutputInfo *output_info =
|
||||||
|
meta_monitor_get_main_output_info (monitor);
|
||||||
|
|
||||||
|
return meta_output_info_get_min_refresh_rate (output_info,
|
||||||
|
min_refresh_rate);
|
||||||
|
}
|
||||||
|
|
||||||
gboolean
|
gboolean
|
||||||
meta_monitor_set_color_space (MetaMonitor *monitor,
|
meta_monitor_set_color_space (MetaMonitor *monitor,
|
||||||
MetaOutputColorspace color_space,
|
MetaOutputColorspace color_space,
|
||||||
|
@ -303,6 +303,9 @@ gboolean meta_monitor_set_privacy_screen_enabled (MetaMonitor *monitor,
|
|||||||
gboolean enabled,
|
gboolean enabled,
|
||||||
GError **error);
|
GError **error);
|
||||||
|
|
||||||
|
gboolean meta_monitor_get_min_refresh_rate (MetaMonitor *monitor,
|
||||||
|
int *min_refresh_rate);
|
||||||
|
|
||||||
META_EXPORT_TEST
|
META_EXPORT_TEST
|
||||||
size_t meta_monitor_get_gamma_lut_size (MetaMonitor *monitor);
|
size_t meta_monitor_get_gamma_lut_size (MetaMonitor *monitor);
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user