Skip to content

Commit

Permalink
Use Arrays.fill to clear out missing pixels in StandardGifDecoder.
Browse files Browse the repository at this point in the history
Progress towards #2471.
  • Loading branch information
sjudd committed Nov 22, 2017
1 parent e7a4942 commit fa2ebfe
Showing 1 changed file with 1 addition and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -750,9 +750,7 @@ private void decodeBitmapData(GifFrame frame) {
}

// Clear missing pixels.
for (i = pi; i < npix; i++) {
mainPixels[i] = COLOR_TRANSPARENT_BLACK;
}
Arrays.fill(mainPixels, pi, npix, (byte) COLOR_TRANSPARENT_BLACK);
}

/**
Expand Down

0 comments on commit fa2ebfe

Please sign in to comment.