/[rdesktop]/sourceforge.net/branches/seamlessrdp-branch/rdesktop/rdesktop.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/branches/seamlessrdp-branch/rdesktop/rdesktop.c

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

revision 871 by stargo, Wed Mar 30 19:51:41 2005 UTC revision 944 by astrand, Tue Aug 2 09:29:15 2005 UTC
# Line 40  Line 40 
40  #endif  #endif
41    
42  #ifdef EGD_SOCKET  #ifdef EGD_SOCKET
43    #include <sys/types.h>
44  #include <sys/socket.h>         /* socket connect */  #include <sys/socket.h>         /* socket connect */
45  #include <sys/un.h>             /* sockaddr_un */  #include <sys/un.h>             /* sockaddr_un */
46  #endif  #endif
# Line 170  usage(char *program) Line 171  usage(char *program)
171          fprintf(stderr, "   -5: use RDP version 5 (default)\n");          fprintf(stderr, "   -5: use RDP version 5 (default)\n");
172  }  }
173    
174  void  static void
175  print_disconnect_reason(uint16 reason)  print_disconnect_reason(uint16 reason)
176  {  {
177          char *text;          char *text;
# Line 573  main(int argc, char *argv[]) Line 574  main(int argc, char *argv[])
574    
575                          case 'z':                          case 'z':
576                                  DEBUG(("rdp compression enabled\n"));                                  DEBUG(("rdp compression enabled\n"));
577                                  flags |= RDP_COMPRESSION;                                  flags |= (RDP_LOGON_COMPRESSION | RDP_LOGON_COMPRESSION2);
578                                  break;                                  break;
579    
580                          case 'x':                          case 'x':
# Line 739  main(int argc, char *argv[]) Line 740  main(int argc, char *argv[])
740                  STRNCPY(g_hostname, fullhostname, sizeof(g_hostname));                  STRNCPY(g_hostname, fullhostname, sizeof(g_hostname));
741          }          }
742    
         if ((flags & RDP_COMPRESSION) && (g_server_bpp > 8))  
         {  
                 warning("rdp compression not supported for bpp > 8, compression disabled\n");  
                 flags ^= RDP_COMPRESSION;  
         }  
   
743          if (prompt_password && read_password(password, sizeof(password)))          if (prompt_password && read_password(password, sizeof(password)))
744                  flags |= RDP_LOGON_AUTO;                  flags |= RDP_LOGON_AUTO;
745    

Legend:
Removed from v.871  
changed lines
  Added in v.944

  ViewVC Help
Powered by ViewVC 1.1.26