diff options
-rw-r--r-- | Misc.c | 12 |
1 files changed, 10 insertions, 2 deletions
@@ -3,6 +3,8 @@ #include <proto/intuition.h> #include <proto/dos.h> +#include <stdarg.h> + #include "Bobi.h" extern struct Screen *mainscreen; @@ -19,10 +21,16 @@ extern BYTE arexxflag; ** Requester mit einem OK-Gadget anzeigen */ -void ShowMonoReq2(char *text) +void ShowMonoReq2(char *text,...) { + char buf[256]; + va_list args; + + va_start(args,text); + vsprintf(buf,text,args); + LockWindows(); - ShowRequest(text,0," OK ",0x8000); + ShowRequest(buf,0," OK ",0x8000); UnLockWindows(); } |