SDL2Config.cmake
author Sam Lantinga <slouken@libsdl.org>
Tue, 12 Dec 2017 16:34:16 -0800
changeset 11771 cb68160b3ace
parent 11210 c92070a96da5
permissions -rw-r--r--
Fixed bug 3981 - Inverted logic bug in SDL_renderer "overscan" feature

Eric wing

There is a tiny bug in the new overscan code for the SDL_renderer.

In SDL_renderer.c, line 1265, the if check for SDL_strcasecmp with "direct3d" needs to be inverted.

Instead of:
if(SDL_strcasecmp("direct3d", SDL_GetCurrentVideoDriver())) {

It should be:
if(0 == SDL_strcasecmp("direct3d", SDL_GetCurrentVideoDriver())) {

This bug causes the "overscan" mode to pretty much be completely ignored in all cases and all things remain letterboxed (as before the feature).
     1 include("${CMAKE_CURRENT_LIST_DIR}/SDL2Targets.cmake")