rsx: Resolution scaling overhaul

- Enforce square pixels instead of per-axis scaling
This commit is contained in:
kd-11 2020-11-17 23:56:33 +03:00 committed by kd-11
parent 68931b4c43
commit 0e7a705254
10 changed files with 121 additions and 89 deletions

View file

@ -1518,10 +1518,8 @@ namespace rsx
framebuffer_status_valid = true;
}
region.x1 = rsx::apply_resolution_scale(x1, false);
region.x2 = rsx::apply_resolution_scale(x2, true);
region.y1 = rsx::apply_resolution_scale(y1, false);
region.y2 = rsx::apply_resolution_scale(y2, true);
std::tie(region.x1, region.y1) = rsx::apply_resolution_scale<false>(x1, y1);
std::tie(region.x2, region.y2) = rsx::apply_resolution_scale<true>(x2, y2);
return true;
}