--- sourceforge.net/trunk/rdesktop/rdesktop.c 2004/09/11 22:57:42 773 +++ sourceforge.net/trunk/rdesktop/rdesktop.c 2004/11/18 11:18:49 800 @@ -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; @@ -852,7 +863,7 @@ void * xrealloc(void *oldmem, int size) { - void * mem; + void *mem; if (size < 1) size = 1;