Hi Ben Thanks a lot! And it works well?
Best regards, // Ola On Wed, Mar 10, 2010 at 12:58:01PM -0400, Ben Armstrong wrote: > 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); > > > -- --- Inguza Technology AB --- MSc in Information Technology ---- / [email protected] Annebergsslingan 37 \ | [email protected] 654 65 KARLSTAD | | http://inguza.com/ Mobile: +46 (0)70-332 1551 | \ gpg/f.p.: 7090 A92B 18FE 7994 0C36 4FE4 18A1 B1CF 0FE5 3DD9 / --------------------------------------------------------------- -- To UNSUBSCRIBE, email to [email protected] with a subject of "unsubscribe". Trouble? Contact [email protected]

