/[enigma]/enigma/src/d_models.cc
ViewVC logotype

Diff of /enigma/src/d_models.cc

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 1.11 by dheck, Thu Jul 3 21:46:32 2003 UTC revision 1.12 by dheck, Thu Jul 17 20:22:01 2003 UTC
# Line 81  namespace Line 81  namespace
81                  }                  }
82                  if (img) {                  if (img) {
83                      SDL_FreeSurface(s);                      SDL_FreeSurface(s);
84                      return new Surface(img);                      return Surface::make_surface(img);
85                  }                  }
86                  return new Surface(s);                  return Surface::make_surface(s);
87              }              }
88              return 0;              return 0;
89          }          }
# Line 286  display::DefineOverlayImage (const char Line 286  display::DefineOverlayImage (const char
286      Surface *sfc = Duplicate(surface_cache.get(images[0]));      Surface *sfc = Duplicate(surface_cache.get(images[0]));
287      if (sfc) // Surface *sfc = enigma::LoadImage(images[0]))      if (sfc) // Surface *sfc = enigma::LoadImage(images[0]))
288      {      {
289            GC gc(sfc);
290          for (int i=1; i<n; i++)          for (int i=1; i<n; i++)
291              sfc->blit(0,0, surface_cache_alpha.get(images[i]));              blit (gc, 0,0, surface_cache_alpha.get(images[i]));
292          DefineModel(name, new ImageModel(sfc, 0,0));          DefineModel(name, new ImageModel(sfc, 0,0));
293          image_pile.push_back(sfc); // make sure it gets destructed          image_pile.push_back(sfc); // make sure it gets destructed
294      }      }

Legend:
Removed from v.1.11  
changed lines
  Added in v.1.12

savannah-hackers-public@gnu.org
ViewVC Help
Powered by ViewVC 1.1.26