Fix dithering error in sprite importer

This commit is contained in:
Thomas den Hollander 2018-03-18 12:58:50 +01:00 committed by Aaron van Geffen
parent 924aed8136
commit af8adfeb40
1 changed files with 1 additions and 1 deletions

View File

@ -418,7 +418,7 @@ static bool sprite_file_import(const char *path, sint16 x_offset, sint16 y_offse
if (x + 1 < width)
{
if (!is_transparent_pixel(rgbaSrc + 4 * (width - 1)) && is_changable_pixel(get_palette_index(rgbaSrc + 4 * (width + 1))))
if (!is_transparent_pixel(rgbaSrc + 4 * (width + 1)) && is_changable_pixel(get_palette_index(rgbaSrc + 4 * (width + 1))))
{
// Bottom right
rgbaSrc[4 * (width + 1)] += dr * 1 / 16;