gnome-screensaver r1653 - in trunk: . src
- From: mccann svn gnome org
- To: svn-commits-list gnome org
- Subject: gnome-screensaver r1653 - in trunk: . src
- Date: Tue, 14 Apr 2009 01:25:47 +0000 (UTC)
Author: mccann
Date: Tue Apr 14 01:25:47 2009
New Revision: 1653
URL: http://svn.gnome.org/viewvc/gnome-screensaver?rev=1653&view=rev
Log:
2009-04-13 William Jon McCann <jmccann redhat com>
* src/gnome-screensaver-gl-helper.c (main):
Don't try to lookup xvisual for null visuals.
Patch from Tomislav Vujec <tvujec gmail com>
Fixes #577739
Modified:
trunk/ChangeLog
trunk/src/gnome-screensaver-gl-helper.c
Modified: trunk/src/gnome-screensaver-gl-helper.c
==============================================================================
--- trunk/src/gnome-screensaver-gl-helper.c (original)
+++ trunk/src/gnome-screensaver-gl-helper.c Tue Apr 14 01:25:47 2009
@@ -64,13 +64,13 @@
display = gdk_display_get_default ();
screen = gdk_display_get_default_screen (display);
visual = gs_visual_gl_get_best_for_screen (screen);
- xvisual = gdk_x11_visual_get_xvisual (visual);
if (visual != NULL) {
+ xvisual = gdk_x11_visual_get_xvisual (visual);
printf ("0x%x\n", (unsigned int) XVisualIDFromVisual (xvisual));
} else {
printf ("none\n");
}
- return 0;
+ return 0;
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]