Indent fixes

git-svn-id: svn://svn.code.sf.net/p/rdesktop/code/trunk/rdesktop@531 423420c4-83ab-492f-b58f-81f9feb106b5
This commit is contained in:
Peter Åstrand 2003-10-29 14:14:46 +00:00
parent 96961a46e2
commit ed2d6084ed
3 changed files with 14 additions and 17 deletions

3
rdp.c
View File

@ -725,7 +725,8 @@ process_bitmap_updates(STREAM s)
left, top, right, bottom, width, height, Bpp, compress));
/* Server may limit bpp - this is how we find out */
if (g_server_bpp != bpp) {
if (g_server_bpp != bpp)
{
warning("Server limited colour depth to %d bits\n", bpp);
g_server_bpp = bpp;
}

View File

@ -135,7 +135,7 @@ wave_out_volume(uint16 left, uint16 right)
if (use_dev_mixer)
{
if ((fd_mix = open( "/dev/mixer", O_RDWR|O_NONBLOCK )) == -1 )
if ((fd_mix = open("/dev/mixer", O_RDWR | O_NONBLOCK)) == -1)
{
perror("open /dev/mixer");
return;
@ -228,16 +228,12 @@ wave_out_play(void)
{
long long duration;
long elapsed;
gettimeofday(&tv, NULL);
duration =
(out->size * (1000000 /
(g_samplewidth * g_snd_rate)));
elapsed =
(tv.tv_sec - startedat_s) * 1000000 +
(tv.tv_usec - startedat_us);
if ( elapsed >= (duration * 7) / 10 )
gettimeofday(&tv, NULL);
duration = (out->size * (1000000 / (g_samplewidth * g_snd_rate)));
elapsed = (tv.tv_sec - startedat_s) * 1000000 + (tv.tv_usec - startedat_us);
if (elapsed >= (duration * 7) / 10)
{
rdpsnd_send_completion(packet->tick, packet->index);
free(out->data);

12
xwin.c
View File

@ -245,7 +245,7 @@ translate8to16(uint8 * data, uint8 * out, uint8 * end)
while (out < end)
{
value = (uint16) g_colmap[*(data++)];
if (g_xserver_be)
{
*(out++) = value >> 8;
@ -268,7 +268,7 @@ translate8to24(uint8 * data, uint8 * out, uint8 * end)
while (out < end)
{
value = g_colmap[*(data++)];
if (g_xserver_be)
{
*(out++) = value >> 16;
@ -700,8 +700,8 @@ ui_init(void)
g_visual = vi.visual;
g_owncolmap = False;
calculate_shifts(vi.red_mask, &g_red_shift_r, &g_red_shift_l);
calculate_shifts(vi.blue_mask, &g_blue_shift_r, &g_blue_shift_l);
calculate_shifts(vi.red_mask, &g_red_shift_r, &g_red_shift_l);
calculate_shifts(vi.blue_mask, &g_blue_shift_r, &g_blue_shift_l);
calculate_shifts(vi.green_mask, &g_green_shift_r, &g_green_shift_l);
}
@ -821,7 +821,7 @@ ui_deinit(void)
#define NULL_POINTER_MASK "\x80"
#define NULL_POINTER_DATA "\x0\x0\x0"
BOOL
ui_create_window(void)
{
@ -916,7 +916,7 @@ void
ui_destroy_window(void)
{
ui_destroy_cursor(g_null_cursor);
if (g_IC != NULL)
XDestroyIC(g_IC);