mirror of
https://github.com/reactos/reactos.git
synced 2025-01-04 05:20:54 +00:00
[MSPAINT] Due to the previous fix changing the selection opacity now behaved oddly when there was no selection
svn path=/trunk/; revision=62012
This commit is contained in:
parent
6ead37dc63
commit
dacbff087d
1 changed files with 7 additions and 4 deletions
|
@ -184,10 +184,13 @@ SettingsWinProc(HWND hwnd, UINT message, WPARAM wParam, LPARAM lParam)
|
|||
transpBg = (y - 2) / 31;
|
||||
InvalidateRect(hwnd, NULL, TRUE);
|
||||
|
||||
/* force refresh of selection contents */
|
||||
SendMessage(hSelection, WM_LBUTTONDOWN, 0, MAKELPARAM(0, 0));
|
||||
SendMessage(hSelection, WM_MOUSEMOVE, 0, MAKELPARAM(0, 0));
|
||||
SendMessage(hSelection, WM_LBUTTONUP, 0, MAKELPARAM(0, 0));
|
||||
if (IsWindowVisible(hSelection))
|
||||
{
|
||||
/* force refresh of selection contents */
|
||||
SendMessage(hSelection, WM_LBUTTONDOWN, 0, MAKELPARAM(0, 0));
|
||||
SendMessage(hSelection, WM_MOUSEMOVE, 0, MAKELPARAM(0, 0));
|
||||
SendMessage(hSelection, WM_LBUTTONUP, 0, MAKELPARAM(0, 0));
|
||||
}
|
||||
}
|
||||
break;
|
||||
case TOOL_RUBBER:
|
||||
|
|
Loading…
Reference in a new issue