diff options
author | Rémi Verschelde <rverschelde@gmail.com> | 2017-04-24 12:02:10 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2017-04-24 12:02:10 +0200 |
commit | 1dc689b513697d4ab2df43fc6bf88fd32f5f5ffa (patch) | |
tree | 04cae11d76a17ad54f21582d4092b7ba36094a82 | |
parent | 8c4b7fcbb6affaa5152f57dc0ee1b502ac0243c2 (diff) | |
parent | 73a9a85bc943819dffc33d27fc9783371b161681 (diff) |
Merge pull request #8506 from iam13islucky/patch-1
[3.0] Fix bug in Image::_get_pixelb
-rw-r--r-- | core/image.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/core/image.cpp b/core/image.cpp index 5fb7cfa812..8a09dc1a8c 100644 --- a/core/image.cpp +++ b/core/image.cpp @@ -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]; } } |