Skip to content
This repository has been archived by the owner. It is now read-only.
Permalink
Browse files

SDL_memcpyMMX(): Make sure srcskip and dstskip are 8-byte aligned.

Thanks to Patrick Baggett for the fix!
  • Loading branch information
icculus committed Oct 29, 2011
1 parent dfa2f9b commit 5bc4851e3a8b0a9ac3de1594de6a80aaf052334a
Showing with 1 addition and 1 deletion.
  1. +1 −1 src/video/SDL_blit_copy.c
@@ -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;

0 comments on commit 5bc4851

Please sign in to comment.