Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
View | Details | Raw Unified | Return to bug 123858 | Differences between
and this patch

Collapse All | Expand All

(-)gdk/x11/gdkinput-x11.c (-2 / +4 lines)
Lines 511-522 gdk_input_translate_coordinates (GdkDevi Link Here
511
      switch (gdkdev->info.axes[i].use)
511
      switch (gdkdev->info.axes[i].use)
512
	{
512
	{
513
	case GDK_AXIS_X:
513
	case GDK_AXIS_X:
514
	  axis_out[i] = x_offset + x_scale * axis_data[x_axis];
514
	  axis_out[i] = x_offset + x_scale * (axis_data[x_axis] - 
515
	    gdkdev->axes[x_axis].min_value);
515
	  if (x_out)
516
	  if (x_out)
516
	    *x_out = axis_out[i];
517
	    *x_out = axis_out[i];
517
	  break;
518
	  break;
518
	case GDK_AXIS_Y:
519
	case GDK_AXIS_Y:
519
	  axis_out[i] = y_offset + y_scale * axis_data[y_axis];
520
	  axis_out[i] = y_offset + y_scale * (axis_data[y_axis] - 
521
	    gdkdev->axes[y_axis].min_value);
520
	  if (y_out)
522
	  if (y_out)
521
	    *y_out = axis_out[i];
523
	    *y_out = axis_out[i];
522
	  break; 
524
	  break; 

Return to bug 123858