home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Gold Fish 1
/
GoldFishApril1994_CD1.img
/
d2xx
/
d242
/
palettereq
/
palettereq_demo.c
< prev
next >
Wrap
C/C++ Source or Header
|
1989-08-30
|
559b
|
20 lines
#include <intuition/intuitionbase.h>
#include <graphics/gfxbase.h>
struct IntuitionBase *IntuitionBase;
struct GfxBase *GfxBase;
main(argc,argv)
int argc;
char *argv[];
{
int result=2;
if (argc>1) result=atoi(argv[1]);
IntuitionBase=(struct IntuitionBase *) OpenLibrary("intuition.library",0);
GfxBase=(struct GfxBase *) OpenLibrary("graphics.library",0);
result=palette_request(NULL,-1,-1,"Testing 1, 2, 3...","Great, huh?",result);
printf("%d\n",result);
CloseLibrary((struct Library *) GfxBase);
CloseLibrary((struct Library *) IntuitionBase);
}