--- sourceforge.net/trunk/rdesktop/rdesktop.c 2004/10/07 13:00:29 782 +++ sourceforge.net/trunk/rdesktop/rdesktop.c 2005/03/02 10:16:31 825 @@ -49,6 +49,8 @@ absolute value specifies the percent of the whole screen. */ int g_height = 600; +int g_xpos = 0; +int g_ypos = 0; extern int g_tcp_port_rdp; int g_server_bpp = 8; int g_win_button_size = 0; /* If zero, disable single app mode */ @@ -439,7 +441,7 @@ } if (*p == 'x') - g_height = strtol(p + 1, NULL, 10); + g_height = strtol(p + 1, &p, 10); if (g_height <= 0) { @@ -448,7 +450,16 @@ } if (*p == '%') + { g_width = -g_width; + p++; + } + + if (*p == '+' || *p == '-') + g_xpos = strtol(p, &p, 10); + + if (*p == '+' || *p == '-') + g_ypos = strtol(p, NULL, 10); break; @@ -679,6 +690,12 @@ STRNCPY(g_hostname, fullhostname, sizeof(g_hostname)); } + if ((flags & RDP_COMPRESSION) && (g_server_bpp > 8)) + { + warning("rdp compression not supported for bpp > 8, compression disabled\n"); + flags ^= RDP_COMPRESSION; + } + if (prompt_password && read_password(password, sizeof(password))) flags |= RDP_LOGON_AUTO;