Skip to content
This repository has been archived by the owner on Feb 11, 2021. It is now read-only.

Commit

Permalink
SDL_memcpyMMX(): Make sure srcskip and dstskip are 8-byte aligned.
Browse files Browse the repository at this point in the history
Thanks to Patrick Baggett for the fix!
  • Loading branch information
icculus committed Oct 29, 2011
1 parent dfa2f9b commit 5bc4851
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/video/SDL_blit_copy.c
Expand Up @@ -127,7 +127,7 @@ SDL_BlitCopy(SDL_BlitInfo * info)
#endif

#ifdef __MMX__
if (SDL_HasMMX()) {
if (SDL_HasMMX() && !(srcskip & 7) && !(dstskip & 7)) {
while (h--) {
SDL_memcpyMMX(dst, src, w);
src += srcskip;
Expand Down

0 comments on commit 5bc4851

Please sign in to comment.