qemu-devel.nongnu.org archive mirror
 help / color / mirror / Atom feed
From: Andrzej Zaborowski <balrogg@gmail.com>
To: qemu-devel@nongnu.org
Subject: [Qemu-devel] [6476] Fix absolute mode mice.
Date: Thu, 29 Jan 2009 23:19:21 +0000	[thread overview]
Message-ID: <E1LSgAL-0008FF-62@cvs.savannah.gnu.org> (raw)

Revision: 6476
          http://svn.sv.gnu.org/viewvc/?view=rev&root=qemu&revision=6476
Author:   balrog
Date:     2009-01-29 23:19:20 +0000 (Thu, 29 Jan 2009)

Log Message:
-----------
Fix absolute mode mice.

width and height were never set which means that host coordinates were 
divided by -1 instead of (width - 1) / 0x7fff.

Modified Paths:
--------------
    trunk/sdl.c

Modified: trunk/sdl.c
===================================================================
--- trunk/sdl.c	2009-01-29 19:59:04 UTC (rev 6475)
+++ trunk/sdl.c	2009-01-29 23:19:20 UTC (rev 6476)
@@ -93,7 +93,9 @@
     if (gui_noframe)
         flags |= SDL_NOFRAME;
 
-    real_screen = SDL_SetVideoMode(ds_get_width(ds), ds_get_height(ds), 0, flags);
+    width = ds_get_width(ds);
+    height = ds_get_height(ds);
+    real_screen = SDL_SetVideoMode(width, height, 0, flags);
     if (!real_screen) {
         fprintf(stderr, "Could not open SDL display\n");
         exit(1);

                 reply	other threads:[~2009-01-29 23:19 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=E1LSgAL-0008FF-62@cvs.savannah.gnu.org \
    --to=balrogg@gmail.com \
    --cc=qemu-devel@nongnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).