CVS: rdesktop xwin.c,1.158,1.159

Jay Sorg <[email protected]>
Newsgroups gmane.network.rdesktop.cvs
Message-ID <[email protected]>
Update of /cvsroot/rdesktop/rdesktop
In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv28497

Modified Files:
	xwin.c 
Log Message:
return data only if 15 or 16 bbp in translate_image

Index: xwin.c
===================================================================
RCS file: /cvsroot/rdesktop/rdesktop/xwin.c,v
retrieving revision 1.158
retrieving revision 1.159
diff -C2 -d -r1.158 -r1.159
*** xwin.c	25 Mar 2004 22:58:45 -0000	1.158
--- xwin.c	29 Mar 2004 13:59:03 -0000	1.159
***************
*** 606,613 ****
  	/* and arch(endian) matches, no need to translate */
  	/* just return data */
! 	if (g_depth > 8)
! 		if (g_arch_match)
! 			if (g_depth == g_server_bpp)
! 				return data;
  
  	size = width * height * (g_bpp / 8);
--- 606,616 ----
  	/* and arch(endian) matches, no need to translate */
  	/* just return data */
! 	if (g_arch_match)
! 	{
! 		if (g_depth == 15 && g_server_bpp == 15)
! 			return data;
! 		if (g_depth == 16 && g_server_bpp == 16)
! 			return data;
! 	}
  
  	size = width * height * (g_bpp / 8);



-------------------------------------------------------
This SF.Net email is sponsored by: IBM Linux Tutorials
Free Linux tutorial presented by Daniel Robbins, President and CEO of
GenToo technologies. Learn everything from fundamentals to system
administration.http://ads.osdn.com/?ad_id=1470&alloc_id=3638&op=click
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.