|
@@ -61,15 +61,15 @@ static void SDL_FillRect##bpp##SSE(Uint8 *pixels, int pitch, Uint32 color, int w
|
|
{ \
|
|
{ \
|
|
int i, n; \
|
|
int i, n; \
|
|
Uint8 *p = NULL; \
|
|
Uint8 *p = NULL; \
|
|
- \
|
|
|
|
|
|
+ \
|
|
|
|
+ SSE_BEGIN; \
|
|
|
|
+ \
|
|
/* If the number of bytes per row is equal to the pitch, treat */ \
|
|
/* If the number of bytes per row is equal to the pitch, treat */ \
|
|
/* all rows as one long continuous row (for better performance) */ \
|
|
/* all rows as one long continuous row (for better performance) */ \
|
|
if ((w) * (bpp) == pitch) { \
|
|
if ((w) * (bpp) == pitch) { \
|
|
w = w * h; \
|
|
w = w * h; \
|
|
h = 1; \
|
|
h = 1; \
|
|
} \
|
|
} \
|
|
- \
|
|
|
|
- SSE_BEGIN; \
|
|
|
|
\
|
|
\
|
|
while (h--) { \
|
|
while (h--) { \
|
|
n = w * bpp; \
|
|
n = w * bpp; \
|