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