home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Gold Fish 1
/
GoldFishApril1994_CD2.img
/
d4xx
/
d493
/
screenmod
/
source
/
about.c
< prev
next >
Wrap
C/C++ Source or Header
|
1991-06-06
|
692b
|
35 lines
/***************** about for ScreenMod ************************/
/* Written by Syd L. Bolton ©1991 */
#include "about.h"
about()
{
struct IntuiMessage *message;
ULONG class;
struct Window *AWindow;
int about_exit=0;
AboutWindow.Screen=Screen; /* make sure we're on right screen! */
AWindow=OpenWindow(&AboutWindow);
if (AWindow==NULL) return(0);
PrintIText(AWindow->RPort,&AboutTextList,0,0);
do {
WaitPort(AWindow->UserPort);
while ( ( message=(struct IntuiMessage *)
GetMsg(AWindow->UserPort) ) != NULL)
{
class=message->Class;
ReplyMsg(message);
if (class==GADGETUP) about_exit=1;
}
} while (about_exit==0);
CloseWindow(AWindow);
}