home *** CD-ROM | disk | FTP | other *** search
/ Club Amiga de Montreal - CAM / CAM_CD_1.iso / files / 580a.lha / HDFView_v3.01 / source.LZH / source / src / closeDown.c next >
Encoding:
C/C++ Source or Header  |  1991-12-03  |  717 b   |  41 lines

  1. #include <exec/types.h>
  2. #include <intuition/intuition.h>
  3. #include <proto/intuition.h>
  4.  
  5. #include "hame.h"
  6.  
  7. #include "viewprotos.h"
  8.  
  9. extern struct Window *sw;
  10. extern struct Window *credwin;
  11. extern struct Window *imageWindow;
  12. extern struct Screen *imageScreen;
  13. extern struct MsgPost *messagePort;
  14. extern struct HamePort *hamePort;
  15. extern BOOL isscale;
  16. extern struct Library *HameBase;
  17.  
  18. VOID
  19. closeDown(VOID)
  20. {
  21.    if(imageWindow) closeWind(imageWindow);
  22.    
  23.    if(sw) {
  24.       isscale = 1;
  25.       closeWind(sw);
  26.    }
  27.    sw = NULL;
  28.    
  29.    if(credwin)
  30.    {
  31.       closeWind(credwin);
  32.    }
  33.    credwin = NULL;
  34.    
  35.    if(hamePort) HAME_Dispose(hamePort);
  36.    hamePort = NULL;
  37.    
  38.    if(imageScreen) CloseScreen(imageScreen);
  39.    
  40. }
  41.