/[rdesktop]/sourceforge.net/trunk/rdesktop/xwin.c
This is repository of my old source code which isn't updated any more. Go to git.rot13.org for current projects!
ViewVC logotype

Diff of /sourceforge.net/trunk/rdesktop/xwin.c

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 498 by astrand, Tue Oct 14 12:05:27 2003 UTC revision 499 by astrand, Wed Oct 15 14:01:32 2003 UTC
# Line 333  translate15to16(uint16 * data, uint8 * o Line 333  translate15to16(uint16 * data, uint8 * o
333    
334                  if (g_host_be)                  if (g_host_be)
335                  {                  {
336                          BSWAP16(pixel)                  BSWAP16(pixel)}
                 }  
337    
338                  value = make_colour16(split_colour15(pixel));                  value = make_colour16(split_colour15(pixel));
339    
# Line 363  translate15to24(uint16 * data, uint8 * o Line 362  translate15to24(uint16 * data, uint8 * o
362    
363                  if (g_host_be)                  if (g_host_be)
364                  {                  {
365                          BSWAP16(pixel)                  BSWAP16(pixel)}
                 }  
366    
367                  value = make_colour24(split_colour15(pixel));                  value = make_colour24(split_colour15(pixel));
368                  if (g_xserver_be)                  if (g_xserver_be)
# Line 457  translate16to24(uint16 * data, uint8 * o Line 455  translate16to24(uint16 * data, uint8 * o
455    
456                  if (g_host_be)                  if (g_host_be)
457                  {                  {
458                          BSWAP16(pixel)                  BSWAP16(pixel)}
                 }  
459    
460                  value = make_colour24(split_colour16(pixel));                  value = make_colour24(split_colour16(pixel));
461    
# Line 489  translate16to32(uint16 * data, uint8 * o Line 486  translate16to32(uint16 * data, uint8 * o
486    
487                  if (g_host_be)                  if (g_host_be)
488                  {                  {
489                          BSWAP16(pixel)                  BSWAP16(pixel)}
                 }  
490    
491                  value = make_colour32(split_colour16(pixel));                  value = make_colour32(split_colour16(pixel));
492    
# Line 500  translate16to32(uint16 * data, uint8 * o Line 496  translate16to32(uint16 * data, uint8 * o
496                          *(out++) = value >> 16;                          *(out++) = value >> 16;
497                          *(out++) = value >> 8;                          *(out++) = value >> 8;
498                          *(out++) = value;                          *(out++) = value;
499                  }                  }
500                  else                  else
501                  {                  {
502                          *(out++) = value;                          *(out++) = value;
503                          *(out++) = value >> 8;                          *(out++) = value >> 8;
504                          *(out++) = value >> 16;                          *(out++) = value >> 16;
505                          *(out++) = value >> 24;                          *(out++) = value >> 24;
506                  }                  }
507          }          }
508  }  }
509    
510  static void  static void
# Line 1203  ui_select(int rdp_socket) Line 1199  ui_select(int rdp_socket)
1199                  {                  {
1200                          FD_SET(g_dsp_fd, &wfds);                          FD_SET(g_dsp_fd, &wfds);
1201                          n = (g_dsp_fd + 1 > n) ? g_dsp_fd + 1 : n;                          n = (g_dsp_fd + 1 > n) ? g_dsp_fd + 1 : n;
1202                  }                  }
1203  #endif  #endif
1204    
1205                  switch (select(n, &rfds, &wfds, NULL, NULL))                  switch (select(n, &rfds, &wfds, NULL, NULL))

Legend:
Removed from v.498  
changed lines
  Added in v.499

  ViewVC Help
Powered by ViewVC 1.1.26