On receiving the WM_MOVE message, the main thread is now told to issue another window resize if window is not in resizable mode, fixes the last glitches when moving during resize.
This commit is contained in:
@@ -8,7 +8,7 @@
|
|||||||
*
|
*
|
||||||
* user Interface module for WinAPI on Windows.
|
* user Interface module for WinAPI on Windows.
|
||||||
*
|
*
|
||||||
* Version: @(#)win_ui.c 1.0.19 2018/02/14
|
* Version: @(#)win_ui.c 1.0.20 2018/02/14
|
||||||
*
|
*
|
||||||
* Authors: Sarah Walker, <http://pcem-emulator.co.uk/>
|
* Authors: Sarah Walker, <http://pcem-emulator.co.uk/>
|
||||||
* Miran Grca, <mgrca8@gmail.com>
|
* Miran Grca, <mgrca8@gmail.com>
|
||||||
@@ -643,6 +643,11 @@ MainWindowProcedure(HWND hwnd, UINT message, WPARAM wParam, LPARAM lParam)
|
|||||||
break;
|
break;
|
||||||
|
|
||||||
case WM_MOVE:
|
case WM_MOVE:
|
||||||
|
/* If window is not resizable, then tell the main thread to
|
||||||
|
resize it, as sometimes, moves can mess up the window size. */
|
||||||
|
if (!vid_resize)
|
||||||
|
doresize = 1;
|
||||||
|
|
||||||
if (window_remember) {
|
if (window_remember) {
|
||||||
GetWindowRect(hwnd, &rect);
|
GetWindowRect(hwnd, &rect);
|
||||||
window_x = rect.left;
|
window_x = rect.left;
|
||||||
|
|||||||
Reference in New Issue
Block a user