~nha/widelands/buildcaps-ext

« back to all changes in this revision

Viewing changes to src/graphic/image_transformations.cc

  • Committer: Holger Rapp
  • Date: 2013-02-10 21:13:36 UTC
  • Revision ID: sirver@gmx.de-20130210211336-ntr97rhnreg1hua5
Really fix assertion in ResizedImage.

Show diffs side-by-side

added added

removed removed

Lines of Context:
410
410
}
411
411
 
412
412
const Image* resize(const Image* original, uint16_t w, uint16_t h) {
413
 
        if (original->w() == w and original->h() == h)
 
413
        if (original->width() == w and original->height() == h)
414
414
                return original;
415
415
 
416
416
        const string new_hash = (boost::format("%s:%i:%i") % original->hash() % w % h).str();