mirror of
https://github.com/jorio/Pomme.git
synced 2025-01-15 10:33:03 +00:00
Implement GetPortBitMapForCopyBits
This commit is contained in:
parent
6544aca918
commit
12253ce6c5
@ -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;
|
||||
|
@ -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,
|
||||
|
Loading…
x
Reference in New Issue
Block a user