Package: directvnc
Version: 0.7.7-1
Tags: patch

Hello,

When I start directvnc 0.7.7-1 in 24 bit mode like this:
     # directvnc 192.168.0.1 -b 24 -m invalid-filename
the display from the server shows correctly, but the cursor is
horizontally shifted.  The cursor on the client appears about half as
far to the right as on the server.

For example: if the cursor is at (600, 400) on the server, it shows on
the client at about (300, 400).  If the cursor is at (1024, 400) on
the server (on the right edge), it shows on the client at about (512,
400).

Click and hover events happen where the cursor is on the server.

This patch seems to help:


---8<---
--- a/src/dfb.c
+++ b/src/dfb.c
@@ -65,7 +65,15 @@

      dsc.caps = DSCAPS_PRIMARY | DSCAPS_SYSTEMONLY /*| DSCAPS_FLIPPING */;
      /* FIXME */
-     dsc.pixelformat = DSPF_RGB16;
+     switch (opt.client.bpp)
+     {
+         case 32:
+             dsc.pixelformat = DSPF_RGB32;
+             break;
+         case 16:
+         default:
+             dsc.pixelformat = DSPF_RGB16;
+     }
      DFBCHECK(dfb->CreateSurface(dfb, &dsc, &primary ));
      primary->GetSize (primary, &opt.client.width, &opt.client.height);

---8<---


Architecture:   i386
Kernel:   Linux slitaz 2.6.37-slitaz #2 SMP Wed Mar 7 10:36:39 CET
2012 i686 GNU/Linux
Shared C library:   libc-2.13.so

Kernel was started with vga=803 as a boot option, for 1024x768x32 resolution.

directvnc: 0.7.7-1 (Debian wheezy)
libdirectfb-1.2-9: 1.2.10.0-4 (Debian squeeze)

libjpeg: 8b (Slitaz 4.0)
zlib: 1.2.6 (Slitaz 4.0)
tslib: 1.0 (Slitaz 4.0)

For compiling:
libdirectfb-dev 1.2.10.0-4 (Debian)
zlib-dev 1.2.6 (Slitaz)
libjpeg8-dev 8b-1 (Debian)
pkg-config 0.25 (Slitaz)
x11proto-core-dev 7.0.16-1 (Debian)

VNC Servers:
Apple Screen Sharing (Mac OS 10.5.8)
tightvnc 1.3.10 (Slitaz 4.0)
x11vnc 0.9.12 (Slitaz 4.0)


Thank you,
Edwin


-- 
To UNSUBSCRIBE, email to debian-bugs-dist-requ...@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org

Reply via email to