Implement GetPortBounds

This commit is contained in:
Iliyas Jorio 2020-11-14 19:01:41 +01:00
parent cf2ca92506
commit f7b14f7dfe
2 changed files with 8 additions and 0 deletions

View File

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

View File

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