Indent fixes.
git-svn-id: svn://svn.code.sf.net/p/rdesktop/code/trunk/rdesktop@696 423420c4-83ab-492f-b58f-81f9feb106b5
This commit is contained in:
parent
70653e3d71
commit
efef8750a8
50
xwin.c
50
xwin.c
@ -252,26 +252,27 @@ translate8to16(uint8 * data, uint8 * out, uint8 * end)
|
|||||||
uint16 value;
|
uint16 value;
|
||||||
|
|
||||||
if (g_arch_match)
|
if (g_arch_match)
|
||||||
REPEAT(*((uint16*)out) = g_colmap[*(data++)]; out += 2;
|
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
|
else
|
||||||
|
if (g_xserver_be)
|
||||||
|
{
|
||||||
|
while (out < end)
|
||||||
{
|
{
|
||||||
|
value = (uint16) g_colmap[*(data++)];
|
||||||
|
*(out++) = value >> 8;
|
||||||
|
*(out++) = value;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
else
|
||||||
|
{
|
||||||
while (out < end)
|
while (out < end)
|
||||||
{
|
{
|
||||||
value = (uint16) g_colmap[*(data++)];
|
value = (uint16) g_colmap[*(data++)];
|
||||||
*(out++) = value;
|
*(out++) = value;
|
||||||
*(out++) = value >> 8;
|
*(out++) = value >> 8;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
/* little endian - conversion happens when colourmap is built */
|
/* little endian - conversion happens when colourmap is built */
|
||||||
@ -308,21 +309,22 @@ translate8to32(uint8 * data, uint8 * out, uint8 * end)
|
|||||||
uint32 value;
|
uint32 value;
|
||||||
|
|
||||||
if (g_arch_match)
|
if (g_arch_match)
|
||||||
REPEAT(*((uint32 *)out) = g_colmap[*(data++)]; out += 4;
|
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
|
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)
|
while (out < end)
|
||||||
{
|
{
|
||||||
value = g_colmap[*(data++)];
|
value = g_colmap[*(data++)];
|
||||||
@ -331,7 +333,7 @@ translate8to32(uint8 * data, uint8 * out, uint8 * end)
|
|||||||
*(out++) = value >> 16;
|
*(out++) = value >> 16;
|
||||||
*(out++) = value >> 24;
|
*(out++) = value >> 24;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
static void
|
static void
|
||||||
|
Loading…
Reference in New Issue
Block a user