MacLO/src/MacLO.c

43 lines
674 B
C
Raw Normal View History

2021-10-11 18:11:48 +00:00
// Copyright (c) Jon Thysell <http://jonthysell.com>
// Licensed under the MIT License.
#include "MacCommon.h"
#include "MacLO.h"
2021-10-11 18:11:48 +00:00
void InitToolBox()
2021-10-11 18:11:48 +00:00
{
InitGraf(&thePort);
InitFonts();
InitWindows();
InitMenus();
TEInit();
InitDialogs(nil);
2021-10-11 18:11:48 +00:00
FlushEvents(everyEvent, 0);
InitCursor();
}
void InitMainWindow()
{
WindowPtr window;
window = GetNewWindow(kBaseResID, nil, kMoveToFront);
if (window == nil)
{
SysBeep(0);
ExitToShell();
}
ShowWindow(window);
SetPort(window);
2021-10-11 18:11:48 +00:00
MoveTo(30, 50);
DrawString("\pHello MacLO");
}
void ProcessEvents()
2021-10-11 18:11:48 +00:00
{
while (!Button()) { }
}