Use srcpixel now that we've set it
This commit is contained in:
@@ -803,7 +803,7 @@ static void SDL_BlitTriangle_Slow(SDL_BlitInfo *info,
|
|||||||
src = (info->src + (srcy * info->src_pitch) + (srcx * srcbpp));
|
src = (info->src + (srcy * info->src_pitch) + (srcx * srcbpp));
|
||||||
if (FORMAT_INDEXED(srcfmt_val)) {
|
if (FORMAT_INDEXED(srcfmt_val)) {
|
||||||
srcpixel = *src;
|
srcpixel = *src;
|
||||||
const SDL_Color *color = &palette->colors[*src];
|
const SDL_Color *color = &palette->colors[srcpixel];
|
||||||
srcR = color->r;
|
srcR = color->r;
|
||||||
srcG = color->g;
|
srcG = color->g;
|
||||||
srcB = color->b;
|
srcB = color->b;
|
||||||
|
|||||||
Reference in New Issue
Block a user