[gtk+/client-side-windows: 82/284] Make xfree gdkinput code compile



commit 283160c712c365b0026e2e2f5ce5c8726fbf9c65
Author: Alexander Larsson <alexl redhat com>
Date:   Fri Jan 16 13:52:16 2009 +0100

    Make xfree gdkinput code compile
---
 gdk/x11/gdkinput-x11.c |   16 ++++++++--------
 1 files changed, 8 insertions(+), 8 deletions(-)

diff --git a/gdk/x11/gdkinput-x11.c b/gdk/x11/gdkinput-x11.c
index 8faf704..9e2d818 100644
--- a/gdk/x11/gdkinput-x11.c
+++ b/gdk/x11/gdkinput-x11.c
@@ -416,15 +416,15 @@ gdk_input_translate_coordinates (GdkDevicePrivate *gdkdev,
 				 gdouble          *x_out,
 				 gdouble          *y_out)
 {
-  GdkWindowImplX11 *impl;
+  GdkWindowObject *window_private;
   int i;
   int x_axis = 0;
   int y_axis = 0;
 
   double device_width, device_height;
   double x_offset, y_offset, x_scale, y_scale;
-
-  impl = GDK_WINDOW_IMPL_X11 (((GdkWindowObject *) input_window->window)->impl);
+  
+  window_private = (GdkWindowObject *) input_window->window;
 
   for (i=0; i<gdkdev->info.num_axes; i++)
     {
@@ -476,26 +476,26 @@ gdk_input_translate_coordinates (GdkDevicePrivate *gdkdev,
 	}
       device_aspect = (device_height*y_resolution) /
         (device_width*x_resolution);
-      if (device_aspect * impl->width >= impl->height)
+      if (device_aspect * window_private->width >= window_private->height)
 	{
 	  /* device taller than window */
-	  x_scale = impl->width / device_width;
+	  x_scale = window_private->width / device_width;
 	  y_scale = (x_scale * x_resolution)
 	    / y_resolution;
 
 	  x_offset = 0;
 	  y_offset = -(device_height * y_scale - 
-			       impl->height)/2;
+		       window_private->height)/2;
 	}
       else
 	{
 	  /* window taller than device */
-	  y_scale = impl->height / device_height;
+	  y_scale = window_private->height / device_height;
 	  x_scale = (y_scale * y_resolution)
 	    / x_resolution;
 
 	  y_offset = 0;
-	  x_offset = - (device_width * x_scale - impl->width)/2;
+	  x_offset = - (device_width * x_scale - window_private->width)/2;
 	}
     }
 



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]