[MSPAINT] Add get/putSubImage in dib.cpp and use them

CORE-19094
This commit is contained in:
Katayama Hirofumi MZ 2023-11-18 14:25:19 +09:00
parent a65ebc8a71
commit 764e5505a7
5 changed files with 49 additions and 29 deletions

View file

@ -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;
}