-g 70%x90%
This commit is contained in:
parent
2140da0c3f
commit
3140824be3
@ -66,7 +66,7 @@ so its use is discouraged.
|
|||||||
Desktop geometry (WxH). If geometry is the special word "workarea", the geometry
|
Desktop geometry (WxH). If geometry is the special word "workarea", the geometry
|
||||||
will be fetched from the extended window manager hints property _NET_WORKAREA, from
|
will be fetched from the extended window manager hints property _NET_WORKAREA, from
|
||||||
the root window. The geometry can also be specified as a percentage of the whole
|
the root window. The geometry can also be specified as a percentage of the whole
|
||||||
screen, e.g. "-g 80%".
|
screen, e.g. "-g 80%", "-g 80%x70%".
|
||||||
|
|
||||||
If the specified geometry depends on the screen size, and the screen
|
If the specified geometry depends on the screen size, and the screen
|
||||||
size is changed, rdesktop will automatically reconnect using the new
|
size is changed, rdesktop will automatically reconnect using the new
|
||||||
|
@ -682,7 +682,14 @@ main(int argc, char *argv[])
|
|||||||
if (*p == '%')
|
if (*p == '%')
|
||||||
{
|
{
|
||||||
g_sizeopt = -g_width;
|
g_sizeopt = -g_width;
|
||||||
g_width = 800;
|
g_width = g_sizeopt;
|
||||||
|
|
||||||
|
if (*(p + 1) == 'x'){
|
||||||
|
g_height = -strtol(p + 2, &p, 10);
|
||||||
|
}else{
|
||||||
|
g_height = g_sizeopt;
|
||||||
|
}
|
||||||
|
|
||||||
p++;
|
p++;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
4
xwin.c
4
xwin.c
@ -1953,8 +1953,8 @@ ui_init_connection(void)
|
|||||||
/* Percent of screen */
|
/* Percent of screen */
|
||||||
if (-g_sizeopt >= 100)
|
if (-g_sizeopt >= 100)
|
||||||
g_using_full_workarea = True;
|
g_using_full_workarea = True;
|
||||||
g_height = HeightOfScreen(g_screen) * (-g_sizeopt) / 100;
|
g_height = HeightOfScreen(g_screen) * (-g_height) / 100;
|
||||||
g_width = WidthOfScreen(g_screen) * (-g_sizeopt) / 100;
|
g_width = WidthOfScreen(g_screen) * (-g_width) / 100;
|
||||||
}
|
}
|
||||||
else if (g_sizeopt == 1)
|
else if (g_sizeopt == 1)
|
||||||
{
|
{
|
||||||
|
Loading…
Reference in New Issue
Block a user