Difference for 2d/ibitblt.c from version 1.1 to 1.2


version 1.1 version 1.2
Line 21
 
Line 21
  *  does set up a structure that blits around the cockpit   *  does set up a structure that blits around the cockpit
  *   *
  * $Log$   * $Log$
  * Revision 1.1  1999/06/14 21:57:24  donut   * Revision 1.2  1999/08/05 22:53:40  sekmu
  * Initial revision   *
    * D3D patch(es) from ADB
    *
    * Revision 1.1.1.1  1999/06/14 21:57:24  donut
    * Import of d1x 1.37 source.
  *   *
  * Revision 1.3  1995/09/13  11:43:22  allender   * Revision 1.3  1995/09/13  11:43:22  allender
  * start on optimizing cockpit copy code   * start on optimizing cockpit copy code
Line 165
 
Line 169
  }   }
 }  }
   
   //added 7/11/99 by adb to prevent memleaks
   static void free_scanline(void)
   {
    if (scanline) free(scanline);
   }
   //end additions - adb
   
   
 void gr_ibitblt_find_hole_size(grs_bitmap *mask_bmp, int *minx, int *miny, int *maxx, int *maxy)  void gr_ibitblt_find_hole_size(grs_bitmap *mask_bmp, int *minx, int *miny, int *maxx, int *maxy)
 {  {
  ubyte c;   ubyte c;
Line 178
 
Line 190
  *miny = mask_bmp->bm_h - 1;   *miny = mask_bmp->bm_h - 1;
  *maxy = 0;   *maxy = 0;
   
  if (scanline == NULL)   //changed 7/11/99 by adb to prevent memleaks
    if (scanline == NULL) {
  scanline = (double *)malloc(sizeof(double) * (MAX_WIDTH / sizeof(double)));   scanline = (double *)malloc(sizeof(double) * (MAX_WIDTH / sizeof(double)));
    atexit(free_scanline);
    }
    //end changes - adb
    
  for (y = 0; y < mask_bmp->bm_h; y++) {   for (y = 0; y < mask_bmp->bm_h; y++) {
  for (x = 0; x < mask_bmp->bm_w; x++) {   for (x = 0; x < mask_bmp->bm_w; x++) {

Legend:
line(s) removed in v.1.1 
line(s) changed
 line(s) added in v.1.2