mirror of
https://github.com/autc04/Retro68.git
synced 2024-06-09 11:29:38 +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);
|
|
}
|
|
};
|
|
|
|
|