mirror of
https://github.com/Garhoogin/NitroPaint.git
synced 2025-06-19 06:45:32 -04:00
Stop setting WS_EX_COMPOSITED when moving windows
Thought it was a good idea at the time. Just destroys performance when moving windows.
This commit is contained in:
parent
5bda488862
commit
8eef307819
@ -231,7 +231,7 @@ LRESULT WINAPI DefChildProc(HWND hWnd, UINT msg, WPARAM wParam, LPARAM lParam) {
|
|||||||
FRAMEDATA *frameData = (FRAMEDATA *) GetWindowLongPtr(hWnd, 0);
|
FRAMEDATA *frameData = (FRAMEDATA *) GetWindowLongPtr(hWnd, 0);
|
||||||
frameData->sizeLevel = 0;
|
frameData->sizeLevel = 0;
|
||||||
HWND hWndParent = (HWND) GetWindowLongPtr(hWnd, GWL_HWNDPARENT);
|
HWND hWndParent = (HWND) GetWindowLongPtr(hWnd, GWL_HWNDPARENT);
|
||||||
SetWindowLong(hWndParent, GWL_EXSTYLE, GetWindowLong(hWndParent, GWL_EXSTYLE) | WS_EX_COMPOSITED);
|
//SetWindowLong(hWndParent, GWL_EXSTYLE, GetWindowLong(hWndParent, GWL_EXSTYLE) | WS_EX_COMPOSITED);
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
case WM_EXITSIZEMOVE:
|
case WM_EXITSIZEMOVE:
|
||||||
@ -239,7 +239,7 @@ LRESULT WINAPI DefChildProc(HWND hWnd, UINT msg, WPARAM wParam, LPARAM lParam) {
|
|||||||
FRAMEDATA *frameData = (FRAMEDATA *) GetWindowLongPtr(hWnd, 0);
|
FRAMEDATA *frameData = (FRAMEDATA *) GetWindowLongPtr(hWnd, 0);
|
||||||
frameData->sizeLevel = 0;
|
frameData->sizeLevel = 0;
|
||||||
HWND hWndParent = (HWND) GetWindowLong(hWnd, GWL_HWNDPARENT);
|
HWND hWndParent = (HWND) GetWindowLong(hWnd, GWL_HWNDPARENT);
|
||||||
SetWindowLong(hWndParent, GWL_EXSTYLE, GetWindowLong(hWndParent, GWL_EXSTYLE) & ~WS_EX_COMPOSITED);
|
//SetWindowLong(hWndParent, GWL_EXSTYLE, GetWindowLong(hWndParent, GWL_EXSTYLE) & ~WS_EX_COMPOSITED);
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user