That was much easier than I thought! I ripped off the mmWidth &
mmHeight computations from InitInput() verbatim. Should probably be
refactored to eliminate the duplication.
diff -ur vnc4-4.1.1+X4.3.0/unix/xc/programs/Xserver/vnc/Xvnc/xvnc.cc
vnc4-4.1.1+X4.3.0+572678//unix/xc/programs/Xserver/vnc/Xvnc/xvnc.cc
--- vnc4-4.1.1+X4.3.0/unix/xc/programs/Xserver/vnc/Xvnc/xvnc.cc
2010-03-10 12:54:58.000000000 -0400
+++ vnc4-4.1.1+X4.3.0+572678//unix/xc/programs/Xserver/vnc/Xvnc/xvnc.cc
2010-03-10 12:41:16.000000000 -0400
@@ -889,7 +889,8 @@
pSize = RRRegisterSize(pScreen,
pvfb->rrScreenSizes[i].width,
pvfb->rrScreenSizes[i].height,
- pScreen->mmWidth, pScreen->mmHeight);
+ (pvfb->rrScreenSizes[i].width * 254 + dpi * 5) / (dpi * 10),
+ (pvfb->rrScreenSizes[i].height * 254 + dpi * 5) / (dpi *
10));
if (!pSize)
return FALSE;
RRRegisterRate(pScreen, pSize, 60);
--
To UNSUBSCRIBE, email to [email protected]
with a subject of "unsubscribe". Trouble? Contact [email protected]