mirror of
https://github.com/libsdl-org/SDL.git
synced 2026-04-26 01:04:17 +00:00
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));
|
||||
if (FORMAT_INDEXED(srcfmt_val)) {
|
||||
srcpixel = *src;
|
||||
const SDL_Color *color = &palette->colors[*src];
|
||||
const SDL_Color *color = &palette->colors[srcpixel];
|
||||
srcR = color->r;
|
||||
srcG = color->g;
|
||||
srcB = color->b;
|
||||
|
||||
Reference in New Issue
Block a user