MCPcopy Create free account
hub / github.com/AppleWin/AppleWin / StretchBltMemToFrameDC

Function StretchBltMemToFrameDC

source/Debugger/Debugger_Display.cpp:630–651  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

628
629
630void StretchBltMemToFrameDC(void)
631{
632 Win32Frame& win32Frame = Win32Frame::GetWin32Frame();
633
634 int nViewportCX, nViewportCY;
635 win32Frame.GetViewportCXCY(nViewportCX, nViewportCY);
636
637 int xdest = win32Frame.IsFullScreen() ? win32Frame.GetFullScreenOffsetX() : GetVideo().GetFrameBufferCentringOffsetX() * win32Frame.GetViewportScale();
638 int ydest = win32Frame.IsFullScreen() ? win32Frame.GetFullScreenOffsetY() : GetVideo().GetFrameBufferCentringOffsetY() * win32Frame.GetViewportScale();
639 int wdest = nViewportCX;
640 int hdest = nViewportCY;
641
642 BOOL bRes = StretchBlt(
643 win32Frame.FrameGetDC(), // HDC hdcDest,
644 xdest, ydest, // int nXOriginDest, int nYOriginDest,
645 wdest, hdest, // int nWidthDest, int nHeightDest,
646 GetDebuggerMemDC(), // HDC hdcSrc,
647 0, 0, // int nXOriginSrc, int nYOriginSrc,
648 GetVideo().GetFrameBufferBorderlessWidth(), GetVideo().GetFrameBufferBorderlessHeight(), // int nWidthSrc, int nHeightSrc,
649 SRCCOPY // uint32_t dwRop
650 );
651}
652
653// Font: Apple Text
654//===========================================================================

Callers 3

UpdateDisplayFunction · 0.85
DebuggerInputConsoleCharFunction · 0.85
DebuggerCursorUpdateFunction · 0.85

Calls 11

GetDebuggerMemDCFunction · 0.85
GetViewportCXCYMethod · 0.80
IsFullScreenMethod · 0.80
GetFullScreenOffsetXMethod · 0.80
GetViewportScaleMethod · 0.80
GetFullScreenOffsetYMethod · 0.80
FrameGetDCMethod · 0.80

Tested by

no test coverage detected