Fixed a copy-paste bug in blend_rect and blend_rect_mask
This commit is contained in:
parent
1432d575dd
commit
2036e48ee7
1 changed files with 2 additions and 2 deletions
|
@ -2234,7 +2234,7 @@ void Image::blend_rect(const Image &p_src, const Rect2 &p_src_rect, const Point2
|
|||
DVector<uint8_t>::Read rp = p_src.data.read();
|
||||
const unsigned char *src_data_ptr = rp.ptr();
|
||||
|
||||
if (format == FORMAT_INDEXED || format == FORMAT_INDEXED || p_src.format == FORMAT_INDEXED || p_src.format == FORMAT_INDEXED_ALPHA) {
|
||||
if (format == FORMAT_INDEXED || format == FORMAT_INDEXED_ALPHA || p_src.format == FORMAT_INDEXED || p_src.format == FORMAT_INDEXED_ALPHA) {
|
||||
|
||||
return;
|
||||
|
||||
|
@ -2287,7 +2287,7 @@ void Image::blend_rect_mask(const Image &p_src, const Image &p_mask, const Rect2
|
|||
DVector<uint8_t>::Read mrp = p_mask.data.read();
|
||||
const unsigned char *mask_data_ptr = mrp.ptr();
|
||||
|
||||
if (format == FORMAT_INDEXED || format == FORMAT_INDEXED || p_src.format == FORMAT_INDEXED || p_src.format == FORMAT_INDEXED_ALPHA) {
|
||||
if (format == FORMAT_INDEXED || format == FORMAT_INDEXED_ALPHA || p_src.format == FORMAT_INDEXED || p_src.format == FORMAT_INDEXED_ALPHA) {
|
||||
|
||||
return;
|
||||
|
||||
|
|
Loading…
Reference in a new issue