[PAINT]
authorBenedikt Freisen <b.freisen@gmx.net>
Thu, 27 May 2010 14:53:53 +0000 (14:53 +0000)
committerBenedikt Freisen <b.freisen@gmx.net>
Thu, 27 May 2010 14:53:53 +0000 (14:53 +0000)
- After clearing a new selection and creating an undo-step, draw selection contents
- Fixes bug #5246

svn path=/trunk/; revision=47373

reactos/base/applications/paint/mouse.c

index 543e34e..d46bbe3 100644 (file)
@@ -279,6 +279,9 @@ endPaintingL(HDC hdc, short x, short y, int fg, int bg)
                 Poly(hdc, ptStack, ptSP + 1, bg, bg, 1, 2, TRUE);
                 newReversible();
 
+                MaskBlt(hDrawingDC, rectSel_src[0], rectSel_src[1], rectSel_src[2], rectSel_src[3], hSelDC, 0,
+                        0, hSelMask, 0, 0, MAKEROP4(SRCCOPY, SRCAND));
+
                 placeSelWin();
                 ShowWindow(hSelection, SW_SHOW);
             }
@@ -302,6 +305,9 @@ endPaintingL(HDC hdc, short x, short y, int fg, int bg)
                      rectSel_src[1] + rectSel_src[3], bgColor, bgColor, 0, TRUE);
                 newReversible();
 
+                BitBlt(hDrawingDC, rectSel_src[0], rectSel_src[1], rectSel_src[2], rectSel_src[3], hSelDC, 0,
+                       0, SRCCOPY);
+
                 placeSelWin();
                 ShowWindow(hSelection, SW_SHOW);
             }