From 41ffdf947758192a335b73ac374e5b28ae0245ae Mon Sep 17 00:00:00 2001 From: korenkonder Date: Thu, 12 Dec 2024 17:03:38 +0300 Subject: [PATCH] Round internal resolution --- src/CRE/render.cpp | 9 ++------- 1 file changed, 2 insertions(+), 7 deletions(-) diff --git a/src/CRE/render.cpp b/src/CRE/render.cpp index 15ef8c1b..586b04ac 100644 --- a/src/CRE/render.cpp +++ b/src/CRE/render.cpp @@ -1494,16 +1494,11 @@ namespace rndr { } } else { - /*float_t round_val = ssaa ? 1.0f : 16.0f; + float_t round_val = ssaa ? 1.0f : 16.0f; render_width[0] = (int32_t)(prj::ceilf((float_t)screen_width * (float_t)inner_width / (float_t)width * (1.0f / round_val)) * round_val); render_height[0] = (int32_t)(prj::ceilf((float_t)screen_height - * (float_t)inner_height / (float_t)height * (1.0f / round_val)) * round_val);*/ - - render_width[0] = (int32_t)prj::ceilf((float_t)screen_width - * (float_t)inner_width / (float_t)width); - render_height[0] = (int32_t)prj::ceilf((float_t)screen_height - * (float_t)inner_height / (float_t)height); + * (float_t)inner_height / (float_t)height * (1.0f / round_val)) * round_val); } int32_t downsample = 1;