mirror of
https://github.com/morgan9e/FreeRDP
synced 2026-04-15 00:44:19 +09:00
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:
@@ -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
|
||||
|
||||
|
||||
Reference in New Issue
Block a user