home *** CD-ROM | disk | FTP | other *** search
- /* mod_misc.c
- * Copyright (C) 1990 Commodore-Amiga, Inc.
- * written by David N. Junod
- *
- * misc. functions
- *
- */
-
- #include "mod.h"
-
- /*--- AutoRequest support variables ---*/
- extern struct TextAttr Topaz80;
-
- UBYTE ErrorBuffer[255] = "\000";
- struct IntuiText ErrorText =
- {2, 1, JAM1, 20, 15, &Topaz80, &ErrorBuffer[0], NULL};
-
- struct IntuiText ctext =
- {AUTOFRONTPEN, AUTOBACKPEN, AUTODRAWMODE, AUTOLEFTEDGE,
- AUTOTOPEDGE, &Topaz80, " CONTINUE ", NULL
- };
-
- BOOL NotifyUser (struct Window * win, UBYTE * msg)
- {
- struct IntuiText *errortext;
- SHORT arwidth, arheight = 60, arwadj = 60;
-
- sprintf (ErrorBuffer, "%s\000", msg);
- errortext = &ErrorText;
- arwidth = IntuiTextLength (errortext) + arwadj;
- return ((BOOL) AutoRequest (win, errortext, NULL, &ctext,
- 0, 0, arwidth, arheight));
- }
-