Get max xbrz scale size from lib

Bumps the max to 6
This commit is contained in:
Charles Dang 2024-08-15 19:36:20 -04:00
parent d7a9421d26
commit cdec7adecf

View file

@ -59,8 +59,8 @@ surface scale_surface_xbrz(const surface & surf, std::size_t z)
if(surf == nullptr)
return nullptr;
if (z > 5) {
PLAIN_LOG << "Cannot use xbrz scaling with zoom factor > 5.";
if (z > xbrz::SCALE_FACTOR_MAX) {
PLAIN_LOG << "Cannot use xbrz scaling with zoom factor > " << xbrz::SCALE_FACTOR_MAX;
z = 1;
}