mirror of
https://github.com/reactos/reactos.git
synced 2025-08-06 20:13:04 +00:00
[MSPAINT] Prepare for debugging (#4257)
- Add #include <debug.h> and add link to ntdll.dll for debugging. - Add CopyDIBImage helper function. CORE-17969
This commit is contained in:
parent
48d1a7bf4d
commit
b2f8d62cd1
6 changed files with 22 additions and 12 deletions
|
@ -170,9 +170,8 @@ void SelectionModel::InsertFromHBITMAP(HBITMAP hBm)
|
|||
HDC hTempDC;
|
||||
HBITMAP hTempMask;
|
||||
|
||||
DeleteObject(SelectObject(m_hDC, m_hBm = (HBITMAP) CopyImage(hBm,
|
||||
IMAGE_BITMAP, 0, 0,
|
||||
LR_COPYRETURNORG)));
|
||||
m_hBm = CopyDIBImage(hBm);
|
||||
DeleteObject(SelectObject(m_hDC, m_hBm));
|
||||
|
||||
SetRectEmpty(&m_rcSrc);
|
||||
m_rcDest.left = m_rcDest.top = 0;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue