gtkglarea r105 - in trunk: . gtkgl
- From: samh svn gnome org
- To: svn-commits-list gnome org
- Subject: gtkglarea r105 - in trunk: . gtkgl
- Date: Wed, 18 Jun 2008 15:15:08 +0000 (UTC)
Author: samh
Date: Wed Jun 18 15:15:08 2008
New Revision: 105
URL: http://svn.gnome.org/viewvc/gtkglarea?rev=105&view=rev
Log:
* gtkgl/gdkgl.c: fix a signed/unsigned compilation warning.
Modified:
trunk/ChangeLog
trunk/gtkgl/gdkgl.c
Modified: trunk/gtkgl/gdkgl.c
==============================================================================
--- trunk/gtkgl/gdkgl.c (original)
+++ trunk/gtkgl/gdkgl.c Wed Jun 18 15:15:08 2008
@@ -528,7 +528,8 @@
Pixmap xpixmap;
GLXPixmap glxpixmap;
Window root_return;
- unsigned int x_ret, y_ret, w_ret, h_ret, bw_ret, depth_ret;
+ unsigned int w_ret, h_ret, bw_ret, depth_ret;
+ int x_ret, y_ret;
#endif
g_return_val_if_fail(GDK_IS_VISUAL(visual), NULL);
@@ -546,9 +547,10 @@
#else
dpy = GDK_DISPLAY();
xpixmap = (Pixmap)GDK_DRAWABLE_XID(pixmap);
-
+
g_return_val_if_fail(XGetGeometry(dpy, xpixmap, &root_return,
- &x_ret, &y_ret, &w_ret, &h_ret, &bw_ret, &depth_ret), NULL);
+ &x_ret, &y_ret, &w_ret, &h_ret,
+ &bw_ret, &depth_ret), NULL);
g_return_val_if_fail((gdk_gl_get_config(visual, GDK_GL_RED_SIZE) +
gdk_gl_get_config(visual, GDK_GL_GREEN_SIZE) +
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]