mirror of
https://github.com/autc04/Retro68.git
synced 2024-12-26 16:29:28 +00:00
20 lines
209 B
C++
20 lines
209 B
C++
#include <Quickdraw.h>
|
|
|
|
class PortSetter
|
|
{
|
|
GrafPtr save;
|
|
public:
|
|
PortSetter(GrafPtr port)
|
|
{
|
|
::GetPort(&save);
|
|
::SetPort(port);
|
|
}
|
|
|
|
~PortSetter()
|
|
{
|
|
::SetPort(save);
|
|
}
|
|
};
|
|
|
|
|