On Tue, Jun 02, 2009 at 02:02:19PM +0200, Pierre Ossman wrote: > On Tue, 2 Jun 2009 13:09:08 +0200 > Adam Tkac <at...@redhat.com> wrote: > > > > > Hm, patch doesn't look fine for me. > > > > First, we should use same DPI in vfbScreenInit and vncRandRSetConfig > > functions. > > It does since it first fetches the existing DPI. Duplicating the code > from vfbScreenInit just increases the risk of getting things different > as you have a SPOT violation and there might be other things in X > modifying the DPI. > > > Also I don't understand your magical constants - 254 should > > be 25.4, shouldn't it? > > It's basically fixed point math, which gives you decent resolution > without having to resort to floating point. It's the same method used > in mi/, which means we should have the same rounding errors as the rest > of Xorg. > > > I think we should try to be consistent with the bare Xorg. Otherwise > > libvnc.so module could have problems. > > This is in the Xvnc specific parts so libvnc.so is unaffected.
Ah, thanks for clarification. I missed this code is in Xvnc only. Then patch looks fine for me. Regards, Adam -- Adam Tkac, Red Hat, Inc. ------------------------------------------------------------------------------ OpenSolaris 2009.06 is a cutting edge operating system for enterprises looking to deploy the next generation of Solaris that includes the latest innovations from Sun and the OpenSource community. Download a copy and enjoy capabilities such as Networking, Storage and Virtualization. Go to: http://p.sf.net/sfu/opensolaris-get _______________________________________________ Tigervnc-devel mailing list Tigervnc-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/tigervnc-devel