diff --git a/sc2/src/sc2code/libs/graphics/sdl/nearest2x.c b/sc2/src/sc2code/libs/graphics/sdl/nearest2x.c index 0c8c5f697..37a0bde0e 100755 --- a/sc2/src/sc2code/libs/graphics/sdl/nearest2x.c +++ b/sc2/src/sc2code/libs/graphics/sdl/nearest2x.c @@ -94,6 +94,7 @@ SCALE_(Nearest) (SDL_Surface *src, SDL_Surface *dst, SDL_Rect *r) even_x: shr ecx, 1 // x = rw / 2 + jz end_x // rw was 1 loop_x: // two-pixel transfer @@ -111,7 +112,8 @@ SCALE_(Nearest) (SDL_Surface *src, SDL_Surface *dst, SDL_Rect *r) dec ecx jnz loop_x - + + end_x: // try to prefetch as early as possible to have it on time PREFETCH (esi + eax)