Author: bfreisen
Date: Thu Feb 6 14:08:59 2014
New Revision: 62012
URL:
http://svn.reactos.org/svn/reactos?rev=62012&view=rev
Log:
[MSPAINT] Due to the previous fix changing the selection opacity now behaved oddly when
there was no selection
Modified:
trunk/reactos/base/applications/mspaint/toolsettings.c
Modified: trunk/reactos/base/applications/mspaint/toolsettings.c
URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/base/applications/mspaint/…
==============================================================================
--- trunk/reactos/base/applications/mspaint/toolsettings.c [iso-8859-1] (original)
+++ trunk/reactos/base/applications/mspaint/toolsettings.c [iso-8859-1] Thu Feb 6
14:08:59 2014
@@ -184,10 +184,13 @@
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: