mirror of
https://github.com/reactos/reactos.git
synced 2025-02-24 17:34:57 +00:00
[paint] fix rectangular selection tool
svn path=/trunk/; revision=45533
This commit is contained in:
parent
8aff466da3
commit
c7fe125d08
1 changed files with 6 additions and 3 deletions
|
@ -251,15 +251,18 @@ endPaintingL(HDC hdc, short x, short y, int fg, int bg)
|
|||
resetToU1();
|
||||
if ((rectSel_src[2] != 0) && (rectSel_src[3] != 0))
|
||||
{
|
||||
DeleteObject(SelectObject
|
||||
(hSelDC, hSelBm =
|
||||
(HBITMAP) CreateDIBWithProperties(rectSel_src[2], rectSel_src[3])));
|
||||
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],
|
||||
rectSel_src[1], SRCCOPY);
|
||||
Rect(hdc, rectSel_src[0], rectSel_src[1], rectSel_src[0] + rectSel_src[2],
|
||||
rectSel_src[1] + rectSel_src[3], bgColor, bgColor, 0, TRUE);
|
||||
newReversible();
|
||||
|
||||
placeSelWin();
|
||||
ShowWindow(hSelection, SW_SHOW);
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue