mirror of
https://github.com/reactos/reactos.git
synced 2025-08-05 22:13:06 +00:00
[MSPAINT] Make selection window-less (#5208)
- Delete selection.cpp and selection.h and selectionWindow. - Extend ColorKeyedMaskBlt function. - Implement selection resizing. CORE-18867
This commit is contained in:
parent
3f5bcf5775
commit
aac89519ec
23 changed files with 702 additions and 829 deletions
|
@ -220,9 +220,13 @@ HBITMAP DoLoadImageFile(HWND hwnd, LPCTSTR name, BOOL fIsMainFile)
|
|||
return hBitmap;
|
||||
}
|
||||
|
||||
HBITMAP Rotate90DegreeBlt(HDC hDC1, INT cx, INT cy, BOOL bRight)
|
||||
HBITMAP Rotate90DegreeBlt(HDC hDC1, INT cx, INT cy, BOOL bRight, BOOL bMono)
|
||||
{
|
||||
HBITMAP hbm2 = CreateDIBWithProperties(cy, cx);
|
||||
HBITMAP hbm2;
|
||||
if (bMono)
|
||||
hbm2 = ::CreateBitmap(cy, cx, 1, 1, NULL);
|
||||
else
|
||||
hbm2 = CreateDIBWithProperties(cy, cx);
|
||||
if (!hbm2)
|
||||
return NULL;
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue