CVS: rdesktop xwin.c,1.181,1.182
Jeroen Meijer <[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-serv2844
Modified Files:
xwin.c
Log Message:
More optimisations
Index: xwin.c
===================================================================
RCS file: /cvsroot/rdesktop/rdesktop/xwin.c,v
retrieving revision 1.181
retrieving revision 1.182
diff -C2 -d -r1.181 -r1.182
*** xwin.c 23 Nov 2004 13:29:12 -0000 1.181
--- xwin.c 28 Feb 2005 01:15:45 -0000 1.182
***************
*** 173,213 ****
}
! static PixelColour
! split_colour15(uint32 colour)
! {
! PixelColour rv;
! rv.red = ((colour >> 7) & 0xf8) | ((colour >> 12) & 0x7);
! rv.green = ((colour >> 2) & 0xf8) | ((colour >> 8) & 0x7);
! rv.blue = ((colour << 3) & 0xf8) | ((colour >> 2) & 0x7);
! return rv;
[...1051 lines suppressed...]
--- 997,1015 ----
calculate_shifts(vi.green_mask, &g_green_shift_r, &g_green_shift_l);
! /* if RGB video and everything is little endian */
! if ((vi.red_mask > vi.green_mask && vi.green_mask > vi.blue_mask) &&
! !g_xserver_be && !g_host_be)
! {
! if (g_depth <= 16 || (g_red_shift_l == 16 && g_green_shift_l == 8 &&
! g_blue_shift_l == 0))
! {
g_arch_match = True;
+ }
+ }
+
+ if (g_arch_match)
+ {
+ DEBUG(("Architectures match, enabling little endian optimisations.\n"));
+ }
}
-------------------------------------------------------
SF email is sponsored by - The IT Product Guide
Read honest & candid reviews on hundreds of IT Products from real users.
Discover which products truly live up to the hype. Start reading now.
http://ads.osdn.com/?ad_id=6595&alloc_id=14396&op=click