From cf2ca92506614bd2ec0eaed12021352bb3c2dfc7 Mon Sep 17 00:00:00 2001 From: Iliyas Jorio Date: Sat, 14 Nov 2020 17:07:17 +0100 Subject: [PATCH] Implement GetWindowPort --- src/Graphics/Graphics.cpp | 5 +++++ src/Pomme.h | 2 ++ 2 files changed, 7 insertions(+) diff --git a/src/Graphics/Graphics.cpp b/src/Graphics/Graphics.cpp index b043c36..819f0f1 100644 --- a/src/Graphics/Graphics.cpp +++ b/src/Graphics/Graphics.cpp @@ -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); diff --git a/src/Pomme.h b/src/Pomme.h index 2d12fe5..a159e5f 100644 --- a/src/Pomme.h +++ b/src/Pomme.h @@ -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);