mirror of
https://github.com/autc04/Retro68.git
synced 2024-08-18 12:29:08 +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);
|
|
}
|
|
};
|
|
|
|
|