mirror of
https://github.com/AppleWin/AppleWin.git
synced 2024-06-26 01:29:30 +00:00
[Bug #018852] Fix redraw issue with 2x to 1x windowed mode for WinXP:
. MoveWindow() with bRepaint=TRUE
This commit is contained in:
parent
90b8735bc3
commit
8c98cf004e
|
@ -333,32 +333,6 @@ void SetCurrentCLK6502()
|
||||||
MB_Reinitialize();
|
MB_Reinitialize();
|
||||||
}
|
}
|
||||||
|
|
||||||
//===========================================================================
|
|
||||||
LRESULT CALLBACK DlgProc (HWND window,
|
|
||||||
UINT message,
|
|
||||||
WPARAM wparam,
|
|
||||||
LPARAM lparam) {
|
|
||||||
if (message == WM_CREATE) {
|
|
||||||
RECT rect;
|
|
||||||
GetWindowRect(window,&rect);
|
|
||||||
SIZE size;
|
|
||||||
size.cx = rect.right-rect.left;
|
|
||||||
size.cy = rect.bottom-rect.top;
|
|
||||||
rect.left = (GetSystemMetrics(SM_CXSCREEN)-size.cx) >> 1;
|
|
||||||
rect.top = (GetSystemMetrics(SM_CYSCREEN)-size.cy) >> 1;
|
|
||||||
rect.right = rect.left+size.cx;
|
|
||||||
rect.bottom = rect.top +size.cy;
|
|
||||||
MoveWindow(window,
|
|
||||||
rect.left,
|
|
||||||
rect.top,
|
|
||||||
rect.right-rect.left,
|
|
||||||
rect.bottom-rect.top,
|
|
||||||
0);
|
|
||||||
ShowWindow(window,SW_SHOW);
|
|
||||||
}
|
|
||||||
return DefWindowProc(window,message,wparam,lparam);
|
|
||||||
}
|
|
||||||
|
|
||||||
//===========================================================================
|
//===========================================================================
|
||||||
void EnterMessageLoop ()
|
void EnterMessageLoop ()
|
||||||
{
|
{
|
||||||
|
|
|
@ -1924,7 +1924,7 @@ static void FrameResizeWindow(int nNewScale)
|
||||||
int nNewWidth, nNewHeight;
|
int nNewWidth, nNewHeight;
|
||||||
GetWidthHeight(nNewWidth, nNewHeight);
|
GetWidthHeight(nNewWidth, nNewHeight);
|
||||||
|
|
||||||
MoveWindow(g_hFrameWindow, nXPos, nYPos, nNewWidth, nNewHeight, FALSE);
|
MoveWindow(g_hFrameWindow, nXPos, nYPos, nNewWidth, nNewHeight, TRUE);
|
||||||
UpdateWindow(g_hFrameWindow);
|
UpdateWindow(g_hFrameWindow);
|
||||||
|
|
||||||
// Remove the tooltips for the old window size
|
// Remove the tooltips for the old window size
|
||||||
|
|
Loading…
Reference in New Issue
Block a user