mirror of
https://github.com/reactos/reactos.git
synced 2024-08-20 18:35:32 +00:00
[paint] fix rectangular selection tool
svn path=/trunk/; revision=45533
This commit is contained in:
parent
8aff466da3
commit
c7fe125d08
|
@ -251,15 +251,18 @@ endPaintingL(HDC hdc, short x, short y, int fg, int bg)
|
||||||
resetToU1();
|
resetToU1();
|
||||||
if ((rectSel_src[2] != 0) && (rectSel_src[3] != 0))
|
if ((rectSel_src[2] != 0) && (rectSel_src[3] != 0))
|
||||||
{
|
{
|
||||||
DeleteObject(SelectObject
|
|
||||||
(hSelDC, hSelBm =
|
|
||||||
(HBITMAP) CreateDIBWithProperties(rectSel_src[2], rectSel_src[3])));
|
|
||||||
DeleteObject(hSelMask);
|
DeleteObject(hSelMask);
|
||||||
|
hSelMask = CreateBitmap(rectSel_src[2], rectSel_src[3], 1, 1, NULL);
|
||||||
|
DeleteObject(SelectObject(hSelDC, hSelMask));
|
||||||
|
Rect(hSelDC, 0, 0, rectSel_src[2], rectSel_src[3], 0x00ffffff, 0x00ffffff, 1, 2);
|
||||||
|
SelectObject(hSelDC, hSelBm = CreateDIBWithProperties(rectSel_src[2], rectSel_src[3]));
|
||||||
|
resetToU1();
|
||||||
BitBlt(hSelDC, 0, 0, rectSel_src[2], rectSel_src[3], hDrawingDC, rectSel_src[0],
|
BitBlt(hSelDC, 0, 0, rectSel_src[2], rectSel_src[3], hDrawingDC, rectSel_src[0],
|
||||||
rectSel_src[1], SRCCOPY);
|
rectSel_src[1], SRCCOPY);
|
||||||
Rect(hdc, rectSel_src[0], rectSel_src[1], rectSel_src[0] + rectSel_src[2],
|
Rect(hdc, rectSel_src[0], rectSel_src[1], rectSel_src[0] + rectSel_src[2],
|
||||||
rectSel_src[1] + rectSel_src[3], bgColor, bgColor, 0, TRUE);
|
rectSel_src[1] + rectSel_src[3], bgColor, bgColor, 0, TRUE);
|
||||||
newReversible();
|
newReversible();
|
||||||
|
|
||||||
placeSelWin();
|
placeSelWin();
|
||||||
ShowWindow(hSelection, SW_SHOW);
|
ShowWindow(hSelection, SW_SHOW);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue