home *** CD-ROM | disk | FTP | other *** search
/ Magazyn Amiga Shareware Floppies / ma15.dms / ma15.adf / SuperDark / prog / rien.dark.c < prev    next >
C/C++ Source or Header  |  1993-03-27  |  1KB  |  56 lines

  1. /****************************************/
  2. /* file rien.dark.c             */
  3. /* This file is a skeleton to         */
  4. /* create new blankers for SuperDark    */
  5. /* This one does absolutly nothing, but */
  6. /* you can easyly take it and put your  */
  7. /* own dark() function...read the docs! */
  8. /****************************************/
  9.  
  10. #include    <exec/types.h>
  11. #include    <exec/ports.h>
  12. #include    <dos/dos.h>
  13. #include    "/includes/struct.h"
  14. #include    "/includes/tom_gadget.h"
  15.  
  16. extern    struct    RastPort    *rp;
  17. extern    struct    Screen        *s;
  18. extern    struct    appel_proc    *p_data_proc;
  19.  
  20. char    *name_module="vide.dark";
  21. char    *p_text_info=
  22. "Rien\n"
  23. "This programm do nothing\n"
  24. "It's a skeletton for your own\n"
  25. "purpose";
  26.  
  27. /* An empty list of gadget....*/
  28. struct    tom_gadget    my_gadg[]={
  29.     {0,        END_LISTE,  0,  0,   0, 0, 0,0,0,0,0}};
  30.  
  31.  
  32. /* Put here your own code */
  33.  
  34. void    dark()
  35. {
  36.     wait_end();
  37.     DCloseScreen(NULL);
  38. }
  39.  
  40. /************************************************************************/
  41. /* These 3 function have to be here, even if they are empty         */
  42. /************************************************************************/
  43.  
  44. void    proc_init()
  45. {
  46.     /* This tel you that you don't want a copy of the WBench screen */
  47.     p_data_proc->type_screen=SCR_OWN;
  48. }
  49.  
  50. void    proc_save()
  51. {
  52. }
  53. void    proc_end()
  54. {
  55. }
  56.