From 66c320763de96054bcdbdba211ddc70152d21a4c Mon Sep 17 00:00:00 2001 From: Adam Bird Date: Wed, 27 Mar 2024 21:18:14 -0400 Subject: [PATCH] update frame buffers when width changes --- src/graphic/Fast3D/gfx_pc.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/graphic/Fast3D/gfx_pc.cpp b/src/graphic/Fast3D/gfx_pc.cpp index 9a66ee9f0..d068e9946 100644 --- a/src/graphic/Fast3D/gfx_pc.cpp +++ b/src/graphic/Fast3D/gfx_pc.cpp @@ -3312,7 +3312,8 @@ void gfx_start_frame(void) { } gfx_current_dimensions.aspect_ratio = (float)gfx_current_dimensions.width / (float)gfx_current_dimensions.height; - if (gfx_current_dimensions.height != gfx_prev_dimensions.height) { + if (gfx_current_dimensions.width != gfx_prev_dimensions.width || + gfx_current_dimensions.height != gfx_prev_dimensions.height) { for (auto& fb : framebuffers) { uint32_t width = fb.second.orig_width, height = fb.second.orig_height; gfx_adjust_width_height_for_scale(width, height);