home *** CD-ROM | disk | FTP | other *** search
/ System Booster / System Booster.iso / Screenblankers / Blanker / Source / Blankers / Fade / blank.c next >
Encoding:
C/C++ Source or Header  |  1996-09-27  |  597 b   |  31 lines

  1. #include <exec/types.h>
  2. #include <intuition/intuition.h>
  3. #include <dos/dos.h>
  4.  
  5. #include <clib/exec_protos.h>
  6.  
  7. #include "Fade.h"
  8. #include "/utility.h"
  9.  
  10. struct fPrefObject { LONG Delay; };
  11.  
  12. extern    struct    fPrefObject    nP;
  13. extern        UBYTE    *prefData;
  14.  
  15. VOID blank( VOID )
  16. {
  17.     struct    fPrefObject    *fP;
  18.     struct    Screen        *FScr;
  19.  
  20.     if( FadeWnd ) fP = &nP;
  21.     else fP = ( struct fPrefObject * )prefData;
  22.  
  23.     if( FScr = cloneTopScreen() ) {
  24.         BlankMousePointer();
  25.         if( fadeScreen( FScr, fP->Delay )) Wait( SIGBREAKF_CTRL_C );
  26.         SetSignal( 0L, SIGBREAKF_CTRL_C );
  27.         UnblankMousePointer();
  28.         closeTopScreen( FScr );
  29.     }
  30. }
  31.