Indent fixes
git-svn-id: svn://svn.code.sf.net/p/rdesktop/code/trunk/rdesktop@705 423420c4-83ab-492f-b58f-81f9feb106b5
This commit is contained in:
parent
2f85428b91
commit
030f5f0ca1
@ -656,7 +656,8 @@ reset_modifier_keys()
|
|||||||
rdp_send_scancode(ev_time, RDP_KEYRELEASE, SCANCODE_CHAR_LALT);
|
rdp_send_scancode(ev_time, RDP_KEYRELEASE, SCANCODE_CHAR_LALT);
|
||||||
|
|
||||||
if (MASK_HAS_BITS(remote_modifier_state, MapRightAltMask) &&
|
if (MASK_HAS_BITS(remote_modifier_state, MapRightAltMask) &&
|
||||||
!get_key_state(state, XK_Alt_R) && !get_key_state(state, XK_Mode_switch) && !get_key_state(state, XK_ISO_Level3_Shift))
|
!get_key_state(state, XK_Alt_R) && !get_key_state(state, XK_Mode_switch)
|
||||||
|
&& !get_key_state(state, XK_ISO_Level3_Shift))
|
||||||
rdp_send_scancode(ev_time, RDP_KEYRELEASE, SCANCODE_CHAR_RALT);
|
rdp_send_scancode(ev_time, RDP_KEYRELEASE, SCANCODE_CHAR_RALT);
|
||||||
|
|
||||||
reset_winkey(ev_time);
|
reset_winkey(ev_time);
|
||||||
|
12
xwin.c
12
xwin.c
@ -172,7 +172,7 @@ static PixelColour
|
|||||||
split_colour15(uint32 colour)
|
split_colour15(uint32 colour)
|
||||||
{
|
{
|
||||||
PixelColour rv;
|
PixelColour rv;
|
||||||
rv.red = ((colour >> 7 ) & 0xf8) | ((colour >> 12) & 0x7);
|
rv.red = ((colour >> 7) & 0xf8) | ((colour >> 12) & 0x7);
|
||||||
rv.green = ((colour >> 2) & 0xf8) | ((colour >> 8) & 0x7);
|
rv.green = ((colour >> 2) & 0xf8) | ((colour >> 8) & 0x7);
|
||||||
rv.blue = ((colour << 3) & 0xf8) | ((colour >> 2) & 0x7);
|
rv.blue = ((colour << 3) & 0xf8) | ((colour >> 2) & 0x7);
|
||||||
return rv;
|
return rv;
|
||||||
@ -182,7 +182,7 @@ static PixelColour
|
|||||||
split_colour16(uint32 colour)
|
split_colour16(uint32 colour)
|
||||||
{
|
{
|
||||||
PixelColour rv;
|
PixelColour rv;
|
||||||
rv.red = ((colour >> 8 ) & 0xf8) | ((colour >> 13) & 0x7);
|
rv.red = ((colour >> 8) & 0xf8) | ((colour >> 13) & 0x7);
|
||||||
rv.green = ((colour >> 3) & 0xfc) | ((colour >> 9) & 0x3);
|
rv.green = ((colour >> 3) & 0xfc) | ((colour >> 9) & 0x3);
|
||||||
rv.blue = ((colour << 3) & 0xf8) | ((colour >> 2) & 0x7);
|
rv.blue = ((colour << 3) & 0xf8) | ((colour >> 2) & 0x7);
|
||||||
return rv;
|
return rv;
|
||||||
@ -252,8 +252,8 @@ 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
|
else
|
||||||
if (g_xserver_be)
|
if (g_xserver_be)
|
||||||
{
|
{
|
||||||
@ -309,8 +309,8 @@ 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
|
else
|
||||||
if (g_xserver_be)
|
if (g_xserver_be)
|
||||||
{
|
{
|
||||||
|
Loading…
Reference in New Issue
Block a user