CVS: rdesktop xwin.c,1.167,1.168
Peter ?strand <[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-serv30641
Modified Files:
xwin.c
Log Message:
Indent fixes.
Index: xwin.c
===================================================================
RCS file: /cvsroot/rdesktop/rdesktop/xwin.c,v
retrieving revision 1.167
retrieving revision 1.168
diff -C2 -d -r1.167 -r1.168
*** xwin.c 11 May 2004 07:34:03 -0000 1.167
--- xwin.c 11 May 2004 13:45:57 -0000 1.168
***************
*** 253,277 ****
if (g_arch_match)
! REPEAT(*((uint16*)out) = g_colmap[*(data++)]; out += 2;
)
! else if (g_xserver_be)
{
! while (out < end)
! {
! value = (uint16) g_colmap[*(data++)];
! *(out++) = value >> 8;
! *(out++) = value;
! }
}
! else
{
! while (out < end)
! {
! value = (uint16) g_colmap[*(data++)];
! *(out++) = value;
! *(out++) = value >> 8;
! }
}
}
/* little endian - conversion happens when colourmap is built */
--- 253,278 ----
if (g_arch_match)
! REPEAT(*((uint16 *) out) = g_colmap[*(data++)]; out += 2;
)
! else
! if (g_xserver_be)
! {
! while (out < end)
{
! value = (uint16) g_colmap[*(data++)];
! *(out++) = value >> 8;
! *(out++) = value;
}
! }
! else
! {
! while (out < end)
{
! value = (uint16) g_colmap[*(data++)];
! *(out++) = value;
! *(out++) = value >> 8;
}
}
+ }
/* little endian - conversion happens when colourmap is built */
***************
*** 309,337 ****
if (g_arch_match)
! REPEAT(*((uint32 *)out) = g_colmap[*(data++)]; out += 4;
)
! else if (g_xserver_be)
{
! while (out < end)
! {
! value = g_colmap[*(data++)];
! *(out++) = value >> 24;
! *(out++) = value >> 16;
! *(out++) = value >> 8;
! *(out++) = value;
! }
}
! else
{
! while (out < end)
! {
! value = g_colmap[*(data++)];
! *(out++) = value;
! *(out++) = value >> 8;
! *(out++) = value >> 16;
! *(out++) = value >> 24;
! }
}
}
static void
--- 310,339 ----
if (g_arch_match)
! REPEAT(*((uint32 *) out) = g_colmap[*(data++)]; out += 4;
)
! else
! if (g_xserver_be)
! {
! while (out < end)
{
! value = g_colmap[*(data++)];
! *(out++) = value >> 24;
! *(out++) = value >> 16;
! *(out++) = value >> 8;
! *(out++) = value;
}
! }
! else
! {
! while (out < end)
{
! value = g_colmap[*(data++)];
! *(out++) = value;
! *(out++) = value >> 8;
! *(out++) = value >> 16;
! *(out++) = value >> 24;
}
}
+ }
static void
-------------------------------------------------------
This SF.Net email is sponsored by Sleepycat Software
Learn developer strategies Cisco, Motorola, Ericsson & Lucent use to
deliver higher performing products faster, at low TCO.
http://www.sleepycat.com/telcomwpreg.php?From=osdnemail3