diff --git a/uppsrc/IconDes/Fast.cpp b/uppsrc/IconDes/Fast.cpp index 7d2638b9d..9395b59de 100644 --- a/uppsrc/IconDes/Fast.cpp +++ b/uppsrc/IconDes/Fast.cpp @@ -46,24 +46,22 @@ void IconDes::ApplyImage(Image m, dword flags, bool alpha) cc.a = d->r; AlphaBlendStraight(&c, &cc, 1); } - else - if(d->r == 255) { - if(flags & K_ALT) - c.a = cc.a; - else - if(flags & K_CTRL) { - RGBA h = cc; - h.a = c.a; - c = h; - } - else { - c = cc; - c.a = d->r; + else { + if(d->r == 255) { + if(flags & K_ALT) + c.a = cc.a; + else + if(flags & K_CTRL) { + RGBA h = cc; + h.a = c.a; + c = h; + } + else + c = cc; } + if(d->r == 128) + c.a = c.r = c.g = c.b = empty; } - else - if(d->r == 128) - c.a = c.r = c.g = c.b = empty; if(c != *t && (doselection || k->r)) { *t = c; RefreshPixel(x, y); diff --git a/uppsrc/ide/icon.ico b/uppsrc/ide/icon.ico index 78c332738..ed674dab4 100644 Binary files a/uppsrc/ide/icon.ico and b/uppsrc/ide/icon.ico differ