xfreerdp: fixed initial smart-sizing dimensions

The window width/height variables and in turn SmartSizingWidth/Height
get automatically updated in th the configure notify event handler.
If the window is created initially the values don't differ from the
event values and therefore SmartSizing was not applied until the
window was resized.
This commit is contained in:
Norbert Federa
2015-04-16 23:54:56 +02:00
parent bad2f138c1
commit fd5f47428b

View File

@@ -554,6 +554,9 @@ BOOL xf_create_window(xfContext* xfc)
width = settings->SmartSizingWidth;
if (settings->SmartSizingHeight)
height = settings->SmartSizingHeight;
xfc->scaledWidth = width;
xfc->scaledHeight = height;
}
#endif