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

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

revision 782 by astrand, Thu Oct 7 13:00:29 2004 UTC revision 825 by stargo, Wed Mar 2 10:16:31 2005 UTC
# Line 49  int g_width = 800;             /* width is special: Line 49  int g_width = 800;             /* width is special:
49                                     absolute value specifies the                                     absolute value specifies the
50                                     percent of the whole screen. */                                     percent of the whole screen. */
51  int g_height = 600;  int g_height = 600;
52    int g_xpos = 0;
53    int g_ypos = 0;
54  extern int g_tcp_port_rdp;  extern int g_tcp_port_rdp;
55  int g_server_bpp = 8;  int g_server_bpp = 8;
56  int g_win_button_size = 0;      /* If zero, disable single app mode */  int g_win_button_size = 0;      /* If zero, disable single app mode */
# Line 439  main(int argc, char *argv[]) Line 441  main(int argc, char *argv[])
441                                  }                                  }
442    
443                                  if (*p == 'x')                                  if (*p == 'x')
444                                          g_height = strtol(p + 1, NULL, 10);                                          g_height = strtol(p + 1, &p, 10);
445    
446                                  if (g_height <= 0)                                  if (g_height <= 0)
447                                  {                                  {
# Line 448  main(int argc, char *argv[]) Line 450  main(int argc, char *argv[])
450                                  }                                  }
451    
452                                  if (*p == '%')                                  if (*p == '%')
453                                    {
454                                          g_width = -g_width;                                          g_width = -g_width;
455                                            p++;
456                                    }
457    
458                                    if (*p == '+' || *p == '-')
459                                            g_xpos = strtol(p, &p, 10);
460    
461                                    if (*p == '+' || *p == '-')
462                                            g_ypos = strtol(p, NULL, 10);
463    
464                                  break;                                  break;
465    
# Line 679  main(int argc, char *argv[]) Line 690  main(int argc, char *argv[])
690                  STRNCPY(g_hostname, fullhostname, sizeof(g_hostname));                  STRNCPY(g_hostname, fullhostname, sizeof(g_hostname));
691          }          }
692    
693            if ((flags & RDP_COMPRESSION) && (g_server_bpp > 8))
694            {
695                    warning("rdp compression not supported for bpp > 8, compression disabled\n");
696                    flags ^= RDP_COMPRESSION;
697            }
698    
699          if (prompt_password && read_password(password, sizeof(password)))          if (prompt_password && read_password(password, sizeof(password)))
700                  flags |= RDP_LOGON_AUTO;                  flags |= RDP_LOGON_AUTO;
701    

Legend:
Removed from v.782  
changed lines
  Added in v.825

  ViewVC Help
Powered by ViewVC 1.1.26