From f60c62f05df341b8f1071a5cbed70a14188f15eb Mon Sep 17 00:00:00 2001 From: olokos <1755581+olokos@users.noreply.github.com> Date: Mon, 6 Feb 2023 17:53:56 +0100 Subject: [PATCH] Graphics - Engine - Fix pause blur for new SDL --- src/graphics/engine/engine.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/graphics/engine/engine.cpp b/src/graphics/engine/engine.cpp index d0ffcc44..5946d389 100644 --- a/src/graphics/engine/engine.cpp +++ b/src/graphics/engine/engine.cpp @@ -3599,7 +3599,8 @@ void CEngine::Capture3DScene() // create SDL surface and final texture ImageData image; - image.surface = SDL_CreateRGBSurfaceFrom(blured.get(), newWidth, newHeight, 32, 0, 0, 0, 0, 0xFF000000); + image.surface = SDL_CreateRGBSurfaceFrom(blured.get(), newWidth, newHeight, + 32, 4 * newWidth, 0x000000FF, 0x0000FF00, 0x00FF0000, 0xFF000000); TextureCreateParams params; params.filter = TEX_FILTER_BILINEAR;