WARNING - OLD ARCHIVES

This is an archived copy of the Xen.org mailing list, which we have preserved to ensure that existing links to archives are not broken. The live archive, which contains the latest emails, can be found at http://lists.xen.org/
   
 
 
Xen 
 
Home Products Support Community News
 
   
 

xen-changelog

[Xen-changelog] [xen-3.2-testing] ioemu: Let the USB tablet reach the fa

To: xen-changelog@xxxxxxxxxxxxxxxxxxx
Subject: [Xen-changelog] [xen-3.2-testing] ioemu: Let the USB tablet reach the far bottom and right pixels
From: "Xen patchbot-3.2-testing" <patchbot-3.2-testing@xxxxxxxxxxxxxxxxxxx>
Date: Thu, 20 Mar 2008 05:42:10 -0700
Delivery-date: Thu, 20 Mar 2008 05:49:30 -0700
Envelope-to: www-data@xxxxxxxxxxxxxxxxxx
List-help: <mailto:xen-changelog-request@lists.xensource.com?subject=help>
List-id: BK change log <xen-changelog.lists.xensource.com>
List-post: <mailto:xen-changelog@lists.xensource.com>
List-subscribe: <http://lists.xensource.com/cgi-bin/mailman/listinfo/xen-changelog>, <mailto:xen-changelog-request@lists.xensource.com?subject=subscribe>
List-unsubscribe: <http://lists.xensource.com/cgi-bin/mailman/listinfo/xen-changelog>, <mailto:xen-changelog-request@lists.xensource.com?subject=unsubscribe>
Reply-to: xen-devel@xxxxxxxxxxxxxxxxxxx
Sender: xen-changelog-bounces@xxxxxxxxxxxxxxxxxxx
# HG changeset patch
# User Keir Fraser <keir.fraser@xxxxxxxxxx>
# Date 1206014691 0
# Node ID 9972eb777b605ee4dd6b42da2aee9032262fc1cf
# Parent  0e23995db2eba0052f2ef05f67b845721eef65db
ioemu: Let the USB tablet reach the far bottom and right pixels
by fixing divisions / multiplications into using width-1.

Signed-off-by: Samuel Thibault <samuel.thibault@xxxxxxxxxxxxx>
xen-unstable changeset:   17189:86e64b684fb2751f8d2db7e07e88da8505008255
xen-unstable date:        Wed Mar 05 11:10:29 2008 +0000
---
 tools/ioemu/hw/xenfb.c |    4 ++--
 tools/ioemu/sdl.c      |    4 ++--
 tools/ioemu/vnc.c      |    4 ++--
 3 files changed, 6 insertions(+), 6 deletions(-)

diff -r 0e23995db2eb -r 9972eb777b60 tools/ioemu/hw/xenfb.c
--- a/tools/ioemu/hw/xenfb.c    Mon Mar 17 11:40:53 2008 +0000
+++ b/tools/ioemu/hw/xenfb.c    Thu Mar 20 12:04:51 2008 +0000
@@ -1044,8 +1044,8 @@ static void xenfb_mouse_event(void *opaq
     struct xenfb *xenfb = opaque;
     if (xenfb->abs_pointer_wanted)
            xenfb_send_position(xenfb,
-                               dx * xenfb->ds->width / 0x7fff,
-                               dy * xenfb->ds->height / 0x7fff,
+                                dx * (xenfb->ds->width - 1) / 0x7fff,
+                                dy * (xenfb->ds->height - 1) / 0x7fff,
                                dz);
     else
            xenfb_send_motion(xenfb, dx, dy, dz);
diff -r 0e23995db2eb -r 9972eb777b60 tools/ioemu/sdl.c
--- a/tools/ioemu/sdl.c Mon Mar 17 11:40:53 2008 +0000
+++ b/tools/ioemu/sdl.c Thu Mar 20 12:04:51 2008 +0000
@@ -279,8 +279,8 @@ static void sdl_send_mouse_event(int dx,
        }
 
        SDL_GetMouseState(&dx, &dy);
-       dx = dx * 0x7FFF / width;
-       dy = dy * 0x7FFF / height;
+        dx = dx * 0x7FFF / (width - 1);
+        dy = dy * 0x7FFF / (height - 1);
     } else if (absolute_enabled) {
        sdl_show_cursor();
        absolute_enabled = 0;
diff -r 0e23995db2eb -r 9972eb777b60 tools/ioemu/vnc.c
--- a/tools/ioemu/vnc.c Mon Mar 17 11:40:53 2008 +0000
+++ b/tools/ioemu/vnc.c Thu Mar 20 12:04:51 2008 +0000
@@ -1023,8 +1023,8 @@ static void pointer_event(VncState *vs, 
        dz = 1;
 
     if (vs->absolute) {
-       kbd_mouse_event(x * 0x7FFF / vs->ds->width,
-                       y * 0x7FFF / vs->ds->height,
+        kbd_mouse_event(x * 0x7FFF / (vs->ds->width - 1),
+                        y * 0x7FFF / (vs->ds->height - 1),
                        dz, buttons);
     } else if (vs->has_pointer_type_change) {
        x -= 0x7FFF;

_______________________________________________
Xen-changelog mailing list
Xen-changelog@xxxxxxxxxxxxxxxxxxx
http://lists.xensource.com/xen-changelog

<Prev in Thread] Current Thread [Next in Thread>
  • [Xen-changelog] [xen-3.2-testing] ioemu: Let the USB tablet reach the far bottom and right pixels, Xen patchbot-3.2-testing <=