mirror of
https://github.com/reactos/reactos.git
synced 2025-08-06 19:32:55 +00:00
[MSPAINT] Add get/putSubImage in dib.cpp and use them
CORE-19094
This commit is contained in:
parent
a65ebc8a71
commit
764e5505a7
5 changed files with 49 additions and 29 deletions
|
@ -44,7 +44,7 @@ LRESULT CFullscreenWindow::OnPaint(UINT nMsg, WPARAM wParam, LPARAM lParam, BOOL
|
|||
INT cyDest = imageModel.GetHeight();
|
||||
INT xDest = (rcWnd.right - rcWnd.left - cxDest) / 2;
|
||||
INT yDest = (rcWnd.bottom - rcWnd.top - cyDest) / 2;
|
||||
BitBlt(hDC, xDest, yDest, cxDest, cyDest, imageModel.GetDC(), 0, 0, SRCCOPY);
|
||||
::BitBlt(hDC, xDest, yDest, cxDest, cyDest, imageModel.GetDC(), 0, 0, SRCCOPY);
|
||||
EndPaint(&ps);
|
||||
return 0;
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue