Package: tightvncserver
Version: 1.3.9-6.1+b1
Severity: normal
Tags: patch

The script /usr/bin/tightvncserver modifies provided geometry values so that
widths are a multiple of 4, and heights a multiple of 2.

My physical display is 1366x768, so this restriction prevents me from having
a virtual desktop of the matching size.

I have modified the script to remove this restriction and things are working
fine.  Here's a patch which removes the relevant restrictions:

--- /tmp/tightvncserver 2010-10-19 02:13:22.000000000 +1300
+++ /usr/bin/tightvncserver     2010-10-19 02:14:14.000000000 +1300
@@ -406,14 +406,6 @@
            die "$prog: geometry $geometry is invalid\n";
        }
 
-       while (($width % 4)!=0) {
-           $width = $width + 1;
-       }
-
-       while (($height % 2)!=0) {
-           $height = $height + 1;
-       }
-
        $geometry = "${width}x$height";
     } else {
        die "$prog: geometry $geometry is invalid\n";

-- System Information:
Debian Release: squeeze/sid
  APT prefers testing
  APT policy: (500, 'testing')
Architecture: amd64 (x86_64)

Kernel: Linux 2.6.32-5-amd64 (SMP w/4 CPU cores)
Locale: LANG=en_NZ.UTF-8, LC_CTYPE=en_NZ.UTF-8 (charmap=ANSI_X3.4-1968) 
(ignored: LC_ALL set to C)
Shell: /bin/sh linked to /bin/dash

Versions of packages tightvncserver depends on:
ii  libc6                   2.11.2-2         Embedded GNU C Library: Shared lib
ii  libjpeg62               6b1-1            The Independent JPEG Group's JPEG 
ii  libx11-6                2:1.3.3-3        X11 client-side library
ii  libxext6                2:1.1.2-1        X11 miscellaneous extension librar
ii  perl                    5.10.1-14        Larry Wall's Practical Extraction 
ii  x11-common              1:7.5+6          X Window System (X.Org) infrastruc
ii  x11-utils               7.5+4            X11 utilities
ii  xauth                   1:1.0.4-1        X authentication utility
ii  zlib1g                  1:1.2.3.4.dfsg-3 compression library - runtime

Versions of packages tightvncserver recommends:
ii  x11-xserver-utils             7.5+2      X server utilities
ii  xfonts-base                   1:1.0.1    standard fonts for X

Versions of packages tightvncserver suggests:
pn  tightvnc-java                 <none>     (no description available)

-- no debconf information



-- 
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