Mercurial > sdl-ios-xcode
changeset 1228:f4a3a4129d04
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
author | Ryan C. Gordon <icculus@icculus.org> |
---|---|
date | Thu, 05 Jan 2006 07:20:12 +0000 |
parents | 3202d727bb4b |
children | 1430f5fe092a |
files | src/video/SDL_stretch.c |
diffstat | 1 files changed, 2 insertions(+), 2 deletions(-) [+] |
line wrap: on
line diff
--- a/src/video/SDL_stretch.c Thu Jan 05 07:08:59 2006 +0000 +++ b/src/video/SDL_stretch.c Thu Jan 05 07:20:12 2006 +0000 @@ -286,9 +286,9 @@ 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