nanogui: Patch: Mouse in portrait_down mode


Previous by date: 10 Nov 2010 11:54:16 -0000 Re: Can Nano-X display on remote X-term, skulski.pas.rochester.edu
Next by date: 10 Nov 2010 11:54:16 -0000 How about adding cgit to website?, Daniel Nyström
Previous in thread:
Next in thread:

Subject: Patch: Mouse in portrait_down mode
From: Klatt Uwe ####@####.####
Date: 10 Nov 2010 11:54:16 -0000
Message-Id: <A1F06CF959C7E14EAC28F277F36817580E65DB5E76@MAS15.arnstein.miwe.de>

Hello,

perhaps there is bug in filter_absrotate():

Index: microwindows-0.91-20090128/src/engine/devmouse.c
===================================================================
--- microwindows-0.91-20090128.orig/src/engine/devmouse.c       2009-01-28 15:27:11.000000000 +0100
+++ microwindows-0.91-20090128/src/engine/devmouse.c    2010-11-09 11:39:36.000000000 +0100
@@ -648,7 +648,7 @@
                break;

        case MWPORTRAIT_DOWN:
-               *xpos = x;
+               *xpos = scrdev.xres - x - 1;
                *ypos = scrdev.yres - y - 1;
                break;

Bye
Uwe

Previous by date: 10 Nov 2010 11:54:16 -0000 Re: Can Nano-X display on remote X-term, skulski.pas.rochester.edu
Next by date: 10 Nov 2010 11:54:16 -0000 How about adding cgit to website?, Daniel Nyström
Previous in thread:
Next in thread:


Powered by ezmlm-browse 0.20.