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;
@ -230,14 +230,10 @@ wave_out_play(void)
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);
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 )
if (elapsed >= (duration * 7) / 10)
{
rdpsnd_send_completion(packet->tick, packet->index);
free(out->data);

4
xwin.c
View File

@ -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);
}