summaryrefslogtreecommitdiff
path: root/src/mate-screensaver-gl-helper.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/mate-screensaver-gl-helper.c')
-rw-r--r--src/mate-screensaver-gl-helper.c4
1 files changed, 1 insertions, 3 deletions
diff --git a/src/mate-screensaver-gl-helper.c b/src/mate-screensaver-gl-helper.c
index acf23ef..472aefd 100644
--- a/src/mate-screensaver-gl-helper.c
+++ b/src/mate-screensaver-gl-helper.c
@@ -35,7 +35,6 @@ main (int argc,
char **argv)
{
GdkDisplay *display;
- GdkScreen *screen;
GdkVisual *visual;
Visual *xvisual;
GError *error = NULL;
@@ -64,8 +63,7 @@ main (int argc,
}
display = gdk_display_get_default ();
- screen = gdk_display_get_default_screen (display);
- visual = gs_visual_gl_get_best_for_screen (screen);
+ visual = gs_visual_gl_get_best_for_display (display);
if (visual != NULL)
{