Skip to content

Commit

Permalink
From Mike Frysinger and/or Gentoo:
Browse files Browse the repository at this point in the history
- 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
  • Loading branch information
icculus committed Jan 5, 2006
1 parent 761e5e8 commit a6f3fc4
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/video/SDL_stretch.c
Expand Up @@ -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
Expand Down

0 comments on commit a6f3fc4

Please sign in to comment.