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