#600630 tightvncserver: Desktop resolution width restricted to multiples of 4

Package:
tightvncserver
Source:
tightvnc
Description:
virtual network computing server software
Submitter:
Alexander Taler
Date:
2010-11-12 05:57:03 UTC
Severity:
normal
#600630#5
Date:
2010-10-18 18:47:06 UTC
From:
To:
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";

#600630#10
Date:
2010-11-12 05:52:40 UTC
From:
To:
Hi Alexander

I wonder why that existed in the first place. Thanks for the report
anyway. I guess it was a restriction in the beginning.

Best regards,

// Ola