diff options
author | Sylvain Becker <sylvain.becker@gmail.com> | 2021-01-26 21:15:15 +0100 |
---|---|---|
committer | Sylvain Becker <sylvain.becker@gmail.com> | 2021-01-26 21:15:15 +0100 |
commit | ead82ffe509e699a317d5389b6ab56f26f084d62 (patch) | |
tree | 51fc26eaebf3f9abd7c4506685eb5fcbe63d1cff /src | |
parent | 477000bc3ceba4b9bd1f8c20f88e83ec602d4637 (diff) | |
download | sdl-ead82ffe509e699a317d5389b6ab56f26f084d62.tar.gz |
SDL_SoftStretch: re-enable USE_ASM_STRETCH path for gcc >= 4.6
Diffstat (limited to 'src')
-rw-r--r-- | src/video/SDL_stretch.c | 10 |
1 files changed, 8 insertions, 2 deletions
diff --git a/src/video/SDL_stretch.c b/src/video/SDL_stretch.c index 28dd05e7d..1c99766a5 100644 --- a/src/video/SDL_stretch.c +++ b/src/video/SDL_stretch.c @@ -38,8 +38,14 @@ (defined(__WATCOMC__) && defined(__386__)) || \ (defined(__GNUC__) && defined(__i386__))) && SDL_ASSEMBLY_ROUTINES /* There's a bug with gcc 4.4.1 and -O2 where srcp doesn't get the correct - * value after the first scanline. FIXME? */ -/* #define USE_ASM_STRETCH */ + * value after the first scanline. */ +/* This bug seems fixed, at least with gcc >= 4.6 */ +# define USE_ASM_STRETCH +# if defined(__GNUC__) +# if (__GNUC__ < 4 || (__GNUC__ == 4 && __GNUC_MINOR__ < 6)) +# undef USE_ASM_STRETCH +# endif +# endif #endif #ifdef USE_ASM_STRETCH |