fix allowing textures to be resized smaller

This commit is contained in:
David Rose 2003-08-21 23:33:05 +00:00
parent 9d137295f6
commit 6d2580e3f4

View File

@ -359,7 +359,9 @@ determine_size() {
// However, we make a special exception: if it would have fit
// without rounding up the UV's, then screw rounding it up and
// just leave it alone.
if (pal->_round_uvs) {
if ((_position._x_size > _placed._x_size ||
_position._y_size > _placed._y_size) &&
pal->_round_uvs) {
compute_size_from_uvs(min_uv, max_uv);
if (_position._x_size <= _placed._x_size &&
_position._y_size <= _placed._y_size &&