home *** CD-ROM | disk | FTP | other *** search
/ The AGA Experience 2 / agavol2.iso / software / utilities / comms / metamail-2.3a / elm113diffs.lha / winio.diff < prev   
Text File  |  1992-05-02  |  5KB  |  186 lines

  1. *** Elm113/winio.c    Sat Apr 18 14:43:24 1992
  2. --- new/winio.c    Thu Apr 30 22:23:38 1992
  3. ***************
  4. *** 10,15 ****
  5. --- 10,24 ----
  6.   #include <proto/intuition.h>
  7.   #include <proto/diskfont.h>
  8.   #endif
  9. + #ifdef DICE
  10. + #include <clib/alib_protos.h>
  11. + #include <clib/asl_protos.h>
  12. + #include <clib/dos_protos.h>
  13. + #include <clib/exec_protos.h>
  14. + #include <clib/graphics_protos.h>
  15. + #include <clib/intuition_protos.h>
  16. + #include <clib/diskfont_protos.h>
  17. + #endif
  18.   #include <dos/dosextens.h>
  19.   #include <graphics/text.h>
  20.   #include <intuition/screens.h>
  21. ***************
  22. *** 148,153 ****
  23. --- 157,173 ----
  24.         savedir = NULL;
  25.       }
  26.   
  27. + #ifdef DICE
  28. + #define ASLFR_TitleText         ASL_Hail
  29. + #define ASLFR_Window            ASL_Window
  30. + #define ASLFR_InitialDrawer     ASL_Dir
  31. + #define ASLFR_InitialFile       ASL_File
  32. + #define ASLFR_SleepWindow       TAG_IGNORE
  33. + #define ASLFR_InitialLeftEdge   ASL_LeftEdge
  34. + #define ASLFR_InitialTopEdge    ASL_TopEdge
  35. + #define ASLFR_InitialWidth      ASL_Width
  36. + #define ASLFR_InitialHeight     ASL_Height
  37. + #endif
  38.       frq_tags[0].ti_Tag  = ASLFR_TitleText;
  39.       frq_tags[0].ti_Data = (ULONG)"Select a file";
  40.       frq_tags[1].ti_Tag  = ASLFR_Window;
  41. ***************
  42. *** 327,334 ****
  43.   
  44.     textAttrIntui.ta_Name  = IntuiFontName;
  45.     textAttrIntui.ta_YSize = IntuiFontSize;
  46. !   textAttrIntui.ta_Style = NULL;
  47. !   textAttrIntui.ta_Flags = NULL;
  48.   
  49.     if (!(textFontIntui=OpenDiskFont(&textAttrIntui))) {
  50.       fprintf(stderr,"elm: cannot open font %s/%d\n",IntuiFontName,IntuiFontSize);
  51. --- 347,354 ----
  52.   
  53.     textAttrIntui.ta_Name  = IntuiFontName;
  54.     textAttrIntui.ta_YSize = IntuiFontSize;
  55. !   textAttrIntui.ta_Style = 0;
  56. !   textAttrIntui.ta_Flags = 0;
  57.   
  58.     if (!(textFontIntui=OpenDiskFont(&textAttrIntui))) {
  59.       fprintf(stderr,"elm: cannot open font %s/%d\n",IntuiFontName,IntuiFontSize);
  60. ***************
  61. *** 340,347 ****
  62.   
  63.     textAttrStd.ta_Name  = StdFontName;
  64.     textAttrStd.ta_YSize = StdFontSize;
  65. !   textAttrStd.ta_Style = NULL;
  66. !   textAttrStd.ta_Flags = NULL;
  67.   
  68.     if (!(textFontStd=OpenDiskFont(&textAttrStd))) {
  69.       fprintf(stderr,"elm: cannot open font %s/%d\n",StdFontName,StdFontSize);
  70. --- 360,367 ----
  71.   
  72.     textAttrStd.ta_Name  = StdFontName;
  73.     textAttrStd.ta_YSize = StdFontSize;
  74. !   textAttrStd.ta_Style = 0;
  75. !   textAttrStd.ta_Flags = 0;
  76.   
  77.     if (!(textFontStd=OpenDiskFont(&textAttrStd))) {
  78.       fprintf(stderr,"elm: cannot open font %s/%d\n",StdFontName,StdFontSize);
  79. ***************
  80. *** 351,358 ****
  81.   
  82.     textAttrPager.ta_Name  = PagerFontName;
  83.     textAttrPager.ta_YSize = PagerFontSize;
  84. !   textAttrPager.ta_Style = NULL;
  85. !   textAttrPager.ta_Flags = NULL;
  86.   
  87.     if (!(textFontPager=OpenDiskFont(&textAttrPager))) {
  88.       fprintf(stderr,"elm: cannot open font %s/%d\n",PagerFontName,PagerFontSize);
  89. --- 371,378 ----
  90.   
  91.     textAttrPager.ta_Name  = PagerFontName;
  92.     textAttrPager.ta_YSize = PagerFontSize;
  93. !   textAttrPager.ta_Style = 0;
  94. !   textAttrPager.ta_Flags = 0;
  95.   
  96.     if (!(textFontPager=OpenDiskFont(&textAttrPager))) {
  97.       fprintf(stderr,"elm: cannot open font %s/%d\n",PagerFontName,PagerFontSize);
  98. ***************
  99. *** 438,444 ****
  100.         /* Are we to make our screen public? */
  101.   
  102.         if (PubScreenName)
  103. !         PubScreenStatus(screen,NULL);
  104.   /*
  105.         else
  106.           PubScreenStatus(screen,PSNF_PRIVATE);
  107. --- 458,464 ----
  108.         /* Are we to make our screen public? */
  109.   
  110.         if (PubScreenName)
  111. !         PubScreenStatus(screen,0);
  112.   /*
  113.         else
  114.           PubScreenStatus(screen,PSNF_PRIVATE);
  115. ***************
  116. *** 559,565 ****
  117.       size_array[2] = newwindow.Width/3;
  118.   
  119.       window_tags[0].ti_Tag  = WA_Zoom;
  120. !     window_tags[0].ti_Data = (ULONG)&size_array;
  121.       window_tags[1].ti_Tag  = WA_AutoAdjust;
  122.       window_tags[1].ti_Data = (ULONG)TRUE;
  123.       window_tags[2].ti_Tag  = TAG_END;
  124. --- 579,585 ----
  125.       size_array[2] = newwindow.Width/3;
  126.   
  127.       window_tags[0].ti_Tag  = WA_Zoom;
  128. !     window_tags[0].ti_Data = (ULONG)size_array;
  129.       window_tags[1].ti_Tag  = WA_AutoAdjust;
  130.       window_tags[1].ti_Data = (ULONG)TRUE;
  131.       window_tags[2].ti_Tag  = TAG_END;
  132. ***************
  133. *** 670,675 ****
  134. --- 690,696 ----
  135.   
  136.   void ElmToFront(void)
  137.   {
  138. +   if (ElmToFrontAllowed) {
  139.       if (UseOwnScreen)
  140.         ScreenToFront(screen);
  141.       else {
  142. ***************
  143. *** 678,683 ****
  144. --- 699,705 ----
  145.       }
  146.   
  147.       ActivateWindow(window);
  148. +   }
  149.   }
  150.   
  151.   
  152. ***************
  153. *** 946,952 ****
  154.     size_array[3] = screen->BarHeight+1;
  155.   
  156.     window_tags[0].ti_Tag  = WA_Zoom;
  157. !   window_tags[0].ti_Data = (ULONG)&size_array;
  158.     window_tags[1].ti_Tag  = TAG_END;
  159.     window_tags[1].ti_Data = NULL;
  160.   
  161. --- 968,974 ----
  162.     size_array[3] = screen->BarHeight+1;
  163.   
  164.     window_tags[0].ti_Tag  = WA_Zoom;
  165. !   window_tags[0].ti_Data = (ULONG)size_array;
  166.     window_tags[1].ti_Tag  = TAG_END;
  167.     window_tags[1].ti_Data = NULL;
  168.   
  169. ***************
  170. *** 953,959 ****
  171.     if (IntuitionBase->lib_Version>=36 && screen) {
  172.       if (sh_win=OpenWindowTagList(&newwindow,window_tags)) {
  173.         sprintf(exec,"newshell \"con:////AmigaElm Shell/WINDOW0x%lx\"",sh_win);
  174. !       Execute(exec,NULL,NULL);
  175.       }
  176.     }
  177.   }
  178. --- 975,981 ----
  179.     if (IntuitionBase->lib_Version>=36 && screen) {
  180.       if (sh_win=OpenWindowTagList(&newwindow,window_tags)) {
  181.         sprintf(exec,"newshell \"con:////AmigaElm Shell/WINDOW0x%lx\"",sh_win);
  182. !       Execute(exec,(BPTR)NULL,(BPTR)NULL);
  183.       }
  184.     }
  185.   }
  186.