> Thanks. Sorry for the trivial whine.
It's not a whine, it's a reasonable request :)
Here is a patch to add it back.
Jay
diff --git a/X11/xf_types.h b/X11/xf_types.h
index 5deb76b..0d355e2 100644
--- a/X11/xf_types.h
+++ b/X11/xf_types.h
@@ -49,6 +49,7 @@ struct xf_info
/* UI settings */
int fullscreen;
+ int percentscreen;
int fs_toggle;
int keyboard_layout_id;
int decoration;
diff --git a/X11/xf_win.c b/X11/xf_win.c
index b3e3d49..705ef4a 100644
--- a/X11/xf_win.c
+++ b/X11/xf_win.c
@@ -998,6 +998,8 @@ xf_get_pixmap_info(xfInfo * xfi)
int
xf_pre_connect(xfInfo * xfi)
{
+ int i1;
+
xf_assign_callbacks(xfi->inst);
xfi->display = XOpenDisplay(NULL);
if (xfi->display == NULL)
@@ -1011,13 +1013,19 @@ xf_pre_connect(xfInfo * xfi)
xfi->depth = DefaultDepthOfScreen(xfi->screen);
xfi->xserver_be = (ImageByteOrder(xfi->display) == MSBFirst);
xf_kb_inst_init(xfi);
-
+ if (xfi->percentscreen > 0)
+ {
+ i1 = (WidthOfScreen(xfi->screen) * xfi->percentscreen) / 100;
+ i1 = (i1 + 3) & (~3);
+ xfi->settings->width = i1;
+ i1 = (HeightOfScreen(xfi->screen) * xfi->percentscreen) / 100;
+ xfi->settings->height = i1;
+ }
if (xfi->fullscreen)
{
xfi->settings->width = WidthOfScreen(xfi->screen);
xfi->settings->height = HeightOfScreen(xfi->screen);
}
-
return 0;
}
diff --git a/X11/xfreerdp.c b/X11/xfreerdp.c
index 4ce2a9b..44a5818 100644
--- a/X11/xfreerdp.c
+++ b/X11/xfreerdp.c
@@ -269,6 +269,10 @@ process_params(xfInfo * xfi, int argc, char ** argv, int * pindex)
{
settings->height = strtol(p + 1, &p, 10);
}
+ if (*p == '%')
+ {
+ xfi->percentscreen = settings->width;
+ }
if ((settings->width < 16) || (settings->height < 16) ||
(settings->width > 4096) || (settings->height > 4096))
{
------------------------------------------------------------------------------
The ultimate all-in-one performance toolkit: Intel(R) Parallel Studio XE:
Pinpoint memory and threading errors before they happen.
Find and fix more than 250 security defects in the development cycle.
Locate bottlenecks in serial and parallel code that limit performance.
http://p.sf.net/sfu/intel-dev2devfeb
_______________________________________________
Freerdp-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/freerdp-devel