Implement GetPortBitMapForCopyBits

This commit is contained in:
Iliyas Jorio 2020-11-21 20:56:41 +01:00
parent 6544aca918
commit 12253ce6c5
2 changed files with 9 additions and 0 deletions

View File

@ -293,6 +293,11 @@ CGrafPtr GetWindowPort(WindowPtr window)
return window;
}
PixMap* GetPortBitMapForCopyBits(CGrafPtr window)
{
return GetImpl(window).macpmPtr;
}
Rect* GetPortBounds(CGrafPtr port, Rect* rect)
{
*rect = port->portRect;

View File

@ -143,6 +143,9 @@ CGrafPtr GetWindowPort(WindowPtr window);
Rect* GetPortBounds(CGrafPtr port, Rect* rect);
// WARNING: actual toolbox function returns BitMap*, not PixMap*!
PixMap* GetPortBitMapForCopyBits(CGrafPtr window);
// ----------------------------------------------------------------------------
// QuickDraw 2D: Pen state manipulation
@ -195,6 +198,7 @@ void DrawStringC(const char* cstr);
// IM:QD:7-44
void DrawPicture(PicHandle myPicture, const Rect* dstRect);
// WARNING: Actual toolbox function takes BitMap* arguments, not PixMap*!
void CopyBits(
const PixMap* srcBits,
PixMap* dstBits,