app: rename gimp_get_screen_resolution() to get_monitor_resolution()
Add a "monitor" parameter and return something reasonable, instead of a useless resolution average of all the screen's monitors. Also require a screen to be passed now.
This commit is contained in:
@ -952,9 +952,10 @@ gimp_display_shell_monitor_res_notify_handler (GObject *config,
|
||||
{
|
||||
if (GIMP_DISPLAY_CONFIG (config)->monitor_res_from_gdk)
|
||||
{
|
||||
gimp_get_screen_resolution (gtk_widget_get_screen (GTK_WIDGET (shell)),
|
||||
&shell->monitor_xres,
|
||||
&shell->monitor_yres);
|
||||
gimp_get_monitor_resolution (gtk_widget_get_screen (GTK_WIDGET (shell)),
|
||||
gimp_widget_get_monitor (GTK_WIDGET (shell)),
|
||||
&shell->monitor_xres,
|
||||
&shell->monitor_yres);
|
||||
}
|
||||
else
|
||||
{
|
||||
|
Reference in New Issue
Block a user