Applied patch from David McCabe

This commit is contained in:
rdb 2009-06-21 06:44:49 +00:00
parent 8407030245
commit 0dd958c608

View File

@ -627,8 +627,9 @@ set_heightfield(const Filename &filename, PNMFileType *ftype) {
// If it's not a valid size, tell PNMImage to resize it. // If it's not a valid size, tell PNMImage to resize it.
if (reqx != imgheader.get_x_size() || reqy != imgheader.get_y_size()) { if (reqx != imgheader.get_x_size() || reqy != imgheader.get_y_size()) {
grutil_cat.warning() << "Rescaling heightfield image " << filename << " to " grutil_cat.warning() << "Rescaling heightfield image " << filename
<< reqx << " by " << reqy << " pixels\n"; << " from " << imgheader.get_x_size() << "x" << imgheader.get_y_size()
<< " to " << reqx << "x" << reqy << " pixels.\n";
_heightfield.set_read_size(reqx, reqy); _heightfield.set_read_size(reqx, reqy);
} }
} }