Implement GetWindowPort

This commit is contained in:
Iliyas Jorio 2020-11-14 17:07:17 +01:00
parent 68d094c179
commit cf2ca92506
2 changed files with 7 additions and 0 deletions

View File

@ -280,6 +280,11 @@ void DamagePortRegion(const Rect* r)
curPort->DamageRegion(*r);
}
CGrafPtr GetWindowPort(WindowPtr window)
{
return window;
}
void DumpPortTGA(const char* outPath)
{
curPort->pixels.WriteTGA(outPath);

View File

@ -122,6 +122,8 @@ void SetPort(GrafPtr port);
void GetPort(GrafPtr* port);
CGrafPtr GetWindowPort(WindowPtr window);
void MoveTo(short h, short v);
void GetForeColor(RGBColor* rgb);