Transparent fix
This commit is contained in:
@@ -123,7 +123,7 @@ namespace lime {
|
|||||||
int sourcePosition, destPosition;
|
int sourcePosition, destPosition;
|
||||||
RGBA sourcePixel;
|
RGBA sourcePixel;
|
||||||
|
|
||||||
if (!mergeAlpha || !sourceImage->transparent) {
|
if (!mergeAlpha || !sourceImage->buffer->transparent) {
|
||||||
|
|
||||||
for (int y = 0; y < destView.height; y++) {
|
for (int y = 0; y < destView.height; y++) {
|
||||||
|
|
||||||
@@ -279,7 +279,7 @@ namespace lime {
|
|||||||
RGBA hitColor;
|
RGBA hitColor;
|
||||||
hitColor.ReadUInt8 (data, ((y + image->offsetY) * (image->buffer->width * 4)) + ((x + image->offsetX) * 4), format, premultiplied);
|
hitColor.ReadUInt8 (data, ((y + image->offsetY) * (image->buffer->width * 4)) + ((x + image->offsetX) * 4), format, premultiplied);
|
||||||
|
|
||||||
if (!image->transparent) {
|
if (!image->buffer->transparent) {
|
||||||
|
|
||||||
fillColor.a = 0xFF;
|
fillColor.a = 0xFF;
|
||||||
hitColor.a = 0xFF;
|
hitColor.a = 0xFF;
|
||||||
|
|||||||
Reference in New Issue
Block a user