Skip to content

Commit

Permalink
Merge pull request #8506 from iam13islucky/patch-1
Browse files Browse the repository at this point in the history
[3.0] Fix bug in Image::_get_pixelb
  • Loading branch information
akien-mga committed Apr 24, 2017
2 parents 8c4b7fc + 73a9a85 commit 1dc689b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion core/image.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -94,7 +94,7 @@ void Image::_get_pixelb(int p_x, int p_y, uint32_t p_pixelsize, const uint8_t *p
uint32_t ofs = (p_y * width + p_x) * p_pixelsize;

for (uint32_t i = 0; i < p_pixelsize; i++) {
p_dst[ofs] = p_src[ofs + i];
p_dst[i] = p_src[ofs + i];
}
}

Expand Down

0 comments on commit 1dc689b

Please sign in to comment.