Merge pull request #1562 from olokos/dev

Fix For MSVC2022 and Background Pause blur
fix-squashed-planets
Tomasz Kapuściński 2023-03-11 11:39:59 +01:00 committed by GitHub
commit 24622e6a75
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
4 changed files with 6 additions and 5 deletions

View File

@ -186,7 +186,7 @@ endif()
# SDL-2.0 is the name used by FreeBSD ports...
# don't confuse it for the version number.
find_library(SDL2_LIBRARY
NAMES SDL2 SDL-2.0
NAMES SDL2 SDL-2.0 SDL2-static
HINTS
ENV SDL2DIR
${SDL2_NO_DEFAULT_PATH_CMD}
@ -223,7 +223,7 @@ if(NOT SDL2_BUILDING_LIBRARY)
HINTS
ENV SDL2DIR
${SDL2_NO_DEFAULT_PATH_CMD}
PATH_SUFFIXES lib ${VC_LIB_PATH_SUFFIX}
PATH_SUFFIXES lib lib/manual-link ${VC_LIB_PATH_SUFFIX}
PATHS ${SDL2MAIN_LIBRARY_PATHS}
DOC "Where the SDL2main library can be found"
)

View File

@ -166,7 +166,7 @@ endif()
# Search for the SDL2_image library
find_library(SDL2_IMAGE_LIBRARY
NAMES SDL2_image
NAMES SDL2_image SDL2_image-static
HINTS
ENV SDL2IMAGEDIR
ENV SDL2DIR

View File

@ -1,5 +1,5 @@
# Compile flags as defined in global CMakeLists
set(CMAKE_CXX_FLAGS "${COLOBOT_CXX_FLAGS}")
set(CMAKE_CXX_FLAGS ${COLOBOT_CXX_FLAGS})
set(CMAKE_CXX_FLAGS_RELEASE ${COLOBOT_CXX_FLAGS_RELEASE})
set(CMAKE_CXX_FLAGS_DEBUG ${COLOBOT_CXX_FLAGS_DEBUG})

View File

@ -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;