1
0
mirror of https://git.tartarus.org/simon/putty.git synced 2025-06-30 19:12:48 -05:00

Now with added menus

[originally from svn r48]
This commit is contained in:
Ben Harris
1999-02-19 23:03:29 +00:00
parent 4e2815c91f
commit 34743b9ef4
2 changed files with 42 additions and 2 deletions

13
mac.c
View File

@ -1,4 +1,4 @@
/* $Id: mac.c,v 1.1.2.1 1999/02/19 21:35:12 ben Exp $ */
/* $Id: mac.c,v 1.1.2.2 1999/02/19 23:03:29 ben Exp $ */
/*
* mac.c -- miscellaneous Mac-specific routines
*/
@ -21,6 +21,8 @@ QDGlobals qd;
int cold = 1;
int main (int argc, char **argv) {
Handle menuBar;
/* Init QuickDraw */
InitGraf(&qd.thePort);
/* Init Font Manager */
@ -35,6 +37,15 @@ int main (int argc, char **argv) {
InitDialogs(nil);
InitCursor();
cold = 0;
menuBar = GetNewMBar(128);
if (menuBar == NULL)
fatalbox("Unable to create menu bar.");
SetMenuBar(menuBar);
AppendResMenu(GetMenuHandle(128), 'DRVR');
/* adjustmenus */
DrawMenuBar();
fatalbox("Init complete");
}