fix graphics glitch on toggle smart-sizing
@@ -677,6 +677,18 @@ LRESULT CALLBACK wf_event_proc(HWND hWnd, UINT Msg, WPARAM wParam, LPARAM lParam
CheckMenuItem(hMenu, SYSCOMMAND_ID_SMARTSIZING,
wfc->common.context.settings->SmartSizing ? MF_CHECKED
: MF_UNCHECKED);
+ if (!wfc->common.context.settings->SmartSizing)
+ {
+ SetWindowPos(wfc->hwnd, HWND_TOP, -1, -1,
+ wfc->common.context.settings->DesktopWidth + wfc->diff.x,
+ wfc->common.context.settings->DesktopHeight + wfc->diff.y,
+ SWP_NOMOVE);
+ }
+ else
+ {
+ wf_size_scrollbars(wfc, wfc->client_width, wfc->client_height);
+ wf_send_resize(wfc);
+ }
}
else
{
