Commit 62c43568 authored by Ryan C. Gordon's avatar Ryan C. Gordon

From Mike Frysinger and/or Gentoo:

- libsdl-SDL_stretch-PIC.patch
ignoring the general fact of how SDL_stretch relies on executing dynamic code,
the inline asm should let gcc handle the a details for getting the actual
address for _copy_row as it will do the right thing
test case: http://dev.gentoo.org/~vapier/libsdl/sdl-stretch.tar.bz2

--HG--
extra : convert_revision : svn%3Ac70aab31-4412-0410-b14c-859654838e24/trunk%401231
parent f5f28907
......@@ -286,9 +286,9 @@ int SDL_SoftStretch(SDL_Surface *src, SDL_Rect *srcrect,
default:
#ifdef __GNUC__
__asm__ __volatile__ (
"call _copy_row"
"call *%4"
: "=&D" (u1), "=&S" (u2)
: "0" (dstp), "1" (srcp)
: "0" (dstp), "1" (srcp), "r" (&_copy_row)
: "memory" );
#else
#ifdef WIN32
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment