diff --git a/src/gfx/pal_packing.cpp b/src/gfx/pal_packing.cpp index d009a58f0..969b46401 100644 --- a/src/gfx/pal_packing.cpp +++ b/src/gfx/pal_packing.cpp @@ -5,7 +5,6 @@ #include #include #include -#include #include #include #include @@ -486,8 +485,7 @@ std::tuple, size_t> maxSize, maxRelSize ); - if (fabs(minSize * maxRelSize - maxSize * minRelSize) - < fabs(minRelSize * maxRelSize) * .001) { + if (maxSize * minRelSize - minSize * maxRelSize < minRelSize * maxRelSize * .001) { options.verbosePrint( Options::VERB_TRACE, " All efficiencies are identical\n" @@ -535,7 +533,7 @@ std::tuple, size_t> if (iter == assignments.end()) { // No such page, create a new one options.verbosePrint( Options::VERB_DEBUG, - "Adding new palette (%zu) for overflowing proto-pal %zu\n", + "Adding new palette (%zu) for overflowing proto-palette %zu\n", assignments.size(), attrs.protoPalIndex );