]> Pileus Git - ~andy/gtk/commitdiff
Fix condition to deliver root coords
authorHans Breuer <hans@breuer.org>
Sat, 4 Jul 2009 10:10:57 +0000 (12:10 +0200)
committerHans Breuer <hans@breuer.org>
Sat, 4 Jul 2009 10:19:12 +0000 (12:19 +0200)
gdk/win32/gdkwindow-win32.c

index 76e851533de9963bb366bc423ccdc187da3ee04f..c72bc06a137445f80ee406f0904735ed066b8a3a 100644 (file)
@@ -2089,9 +2089,9 @@ gdk_win32_window_get_root_coords (GdkWindow *window,
   tx = pt.x;
   ty = pt.y;
   
-  if (x)
+  if (root_x)
     *root_x = tx + _gdk_offset_x;
-  if (y)
+  if (root_y)
     *root_y = ty + _gdk_offset_y;
 
   GDK_NOTE (MISC, g_print ("gdk_window_get_root_coords: %p: %+d%+d %+d%+d\n",