On Tue, Aug 24, 2010 at 08:05:38AM +0200, Martin Koegler wrote:
> Libraries like qt segfault, if reader is enabled but this information
> is not set

Commited with little modifications as r4124. Thanks for the patch.

Regards, Adam

> 
> Signed-off-by: Martin Koegler <mkoeg...@auto.tuwien.ac.at>
> ---
>  unix/xserver/hw/vnc/xvnc.cc |    8 ++++++++
>  1 files changed, 8 insertions(+), 0 deletions(-)
> 
> diff --git a/unix/xserver/hw/vnc/xvnc.cc b/unix/xserver/hw/vnc/xvnc.cc
> index 15235e1..2fae601 100644
> --- a/unix/xserver/hw/vnc/xvnc.cc
> +++ b/unix/xserver/hw/vnc/xvnc.cc
> @@ -1210,6 +1210,14 @@ vfbScreenInit(int index, ScreenPtr pScreen, int argc, 
> char **argv)
>       pvfb->greenBits = 6;
>      }
>      
> +    if (!pvfb->pixelFormatDefined && pvfb->fb.depth == 32) {
> +     pvfb->pixelFormatDefined = TRUE;
> +     pvfb->rgbNotBgr = TRUE;
> +     pvfb->blueBits = 8;
> +     pvfb->redBits = 8;
> +     pvfb->greenBits = 8;
> +    }
> +    
>      if (pvfb->pixelFormatDefined) {
>       VisualPtr vis = pScreen->visuals;
>       for (int i = 0; i < pScreen->numVisuals; i++) {
> -- 
> 1.5.6.5
> 
> 
> ------------------------------------------------------------------------------
> Sell apps to millions through the Intel(R) Atom(Tm) Developer Program
> Be part of this innovative community and reach millions of netbook users 
> worldwide. Take advantage of special opportunities to increase revenue and 
> speed time-to-market. Join now, and jumpstart your future.
> http://p.sf.net/sfu/intel-atom-d2d
> _______________________________________________
> Tigervnc-devel mailing list
> Tigervnc-devel@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/tigervnc-devel

-- 
Adam Tkac, Red Hat, Inc.

------------------------------------------------------------------------------
Sell apps to millions through the Intel(R) Atom(Tm) Developer Program
Be part of this innovative community and reach millions of netbook users 
worldwide. Take advantage of special opportunities to increase revenue and 
speed time-to-market. Join now, and jumpstart your future.
http://p.sf.net/sfu/intel-atom-d2d
_______________________________________________
Tigervnc-devel mailing list
Tigervnc-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/tigervnc-devel

Reply via email to