mirror of
https://github.com/jorio/Pomme.git
synced 2025-02-17 07:32:11 +00:00
Implement GetPortBounds
This commit is contained in:
parent
cf2ca92506
commit
f7b14f7dfe
@ -285,6 +285,12 @@ CGrafPtr GetWindowPort(WindowPtr window)
|
||||
return window;
|
||||
}
|
||||
|
||||
Rect* GetPortBounds(CGrafPtr port, Rect* rect)
|
||||
{
|
||||
*rect = port->portRect;
|
||||
return rect;
|
||||
}
|
||||
|
||||
void DumpPortTGA(const char* outPath)
|
||||
{
|
||||
curPort->pixels.WriteTGA(outPath);
|
||||
|
@ -124,6 +124,8 @@ void GetPort(GrafPtr* port);
|
||||
|
||||
CGrafPtr GetWindowPort(WindowPtr window);
|
||||
|
||||
Rect* GetPortBounds(CGrafPtr port, Rect* rect);
|
||||
|
||||
void MoveTo(short h, short v);
|
||||
|
||||
void GetForeColor(RGBColor* rgb);
|
||||
|
Loading…
x
Reference in New Issue
Block a user