
#include <QuickDraw.h>
#include <Fonts.h>
#include <Memory.h>
#include <Sound.h>


#define SysFontFam (*(short *)0xBA6)
#define SysFontSize (*(short *)0xBA8)
#define SysFont (*(short *)0xBc6)


pascal void main (short message, MenuHandle menu, Rect *menuRect, Point hit, short *item) {
	
	/*
	5/6/93 dmb: ust set geneva 9 and lets the system mdef do all the work
	*/
	
	Handle hmdef;
	char state;
	short savefontfam;
	short savesize;
	
	hmdef = GetResource ('MDEF', 0);
	
	if (hmdef == nil) {
		
		SysBeep (1);
		
		return;
		}
	
	state = HGetState (hmdef);
	
	HLock (hmdef);
	
	savefontfam = LMGetSysFontFam ();
	
	savesize = LMGetSysFontSize ();
	
//	savefont = (*thePort).txFont;
	
//	savesize = (*thePort).txSize;
	
	TextFont (kFontIDGeneva);
	
	TextSize (9);
	
	LMSetSysFontFam (kFontIDGeneva);
	
	LMSetSysFontSize (9);
	
	FlushFonts ();
	
//	if (CurFMInput == 0)
//		CurFMInput = -1L;
	
	(*(pascal void (*)(...)) *hmdef) (message, menu, menuRect, hit, item);
	
	LMSetSysFontFam (savefontfam);
	
	LMSetSysFontSize (savesize);
	
	TextFont (0);
	
	TextSize (0);
	
	HSetState (hmdef, state);
	} /*main*/


