|
|
| version 1.4, 2007/01/12 19:09:58 | version 1.7, 2007/01/22 16:37:05 |
|---|---|
| Line 25 | Line 25 |
| * THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. | * THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. |
| */ | */ |
| #ifdef HAVE_CONFIG_H | |
| #include "config.h" | |
| #endif | |
| #include <string.h> | #include <string.h> |
| #include "gtk2/xnp2.h" | #include "gtk2/xnp2.h" |
| #include <gdk/gdkx.h> | #include <gdk/gdkx.h> |
| #ifdef HAVE_XF86VIDMODE | |
| #include <X11/extensions/xf86vmode.h> | |
| #endif | |
| extern int verbose; | extern int verbose; |
| void | void |
| Line 90 gdk_window_get_pixmap_format(GdkWindow * | Line 90 gdk_window_get_pixmap_format(GdkWindow * |
| } | } |
| #ifdef HAVE_XF86VIDMODE | #ifdef HAVE_XF86VIDMODE |
| #include <X11/extensions/xf86vmode.h> | |
| static XF86VidModeModeInfo **modes = NULL; | static XF86VidModeModeInfo **modes = NULL; |
| static int modeidx = -1; | static int modeidx = -1; |
| static XF86VidModeModeInfo *saved_modes; | static XF86VidModeModeInfo *saved_modes; |
| Line 191 gtk_window_init_fullscreen(GtkWidget *wi | Line 193 gtk_window_init_fullscreen(GtkWidget *wi |
| } | } |
| } | } |
| } | } |
| XFree(modes); | if (!ret) { |
| XFree(modes); | |
| modes = NULL; | |
| } | |
| out: | out: |
| XUnlockDisplay(xdisplay); | XUnlockDisplay(xdisplay); |