home *** CD-ROM | disk | FTP | other *** search
/ The Fred Fish Collection 1.5 / ffcollection-1-5-1992-11.iso / ff_disks / 200-299 / ff242.lzh / PaletteReq / PaletteReq_demo.c < prev    next >
C/C++ Source or Header  |  1989-08-30  |  559b  |  20 lines

  1. #include <intuition/intuitionbase.h>
  2. #include <graphics/gfxbase.h>
  3.  
  4. struct IntuitionBase *IntuitionBase;
  5. struct GfxBase *GfxBase;
  6.  
  7. main(argc,argv)
  8. int argc;
  9. char *argv[];
  10. {
  11.     int result=2;
  12.     if (argc>1) result=atoi(argv[1]);
  13.     IntuitionBase=(struct IntuitionBase *) OpenLibrary("intuition.library",0);
  14.     GfxBase=(struct GfxBase *) OpenLibrary("graphics.library",0);
  15.     result=palette_request(NULL,-1,-1,"Testing 1, 2, 3...","Great, huh?",result);
  16.     printf("%d\n",result);
  17.     CloseLibrary((struct Library *) GfxBase);
  18.     CloseLibrary((struct Library *) IntuitionBase);
  19. }
  20.