mirror of
https://github.com/ZDoom/qzdoom.git
synced 2024-11-12 07:34:50 +00:00
Merge pull request #15 from alexey-lysiuk/fix_upscale_transparency
Fixed missing transparency on upscaled textures
This commit is contained in:
commit
4659a87292
1 changed files with 1 additions and 1 deletions
|
@ -558,7 +558,7 @@ bool FTexture::SmoothEdges(unsigned char * buffer,int w, int h)
|
||||||
l1+=4;
|
l1+=4;
|
||||||
for(x=1;x<w-1;x++, l1+=4)
|
for(x=1;x<w-1;x++, l1+=4)
|
||||||
{
|
{
|
||||||
if (l1[MSB]==0 && !CHKPIX(-w) && !CHKPIX(-1) && !CHKPIX(1)) CHKPIX(w);
|
if (l1[MSB]==0 && !CHKPIX(-w) && !CHKPIX(-1) && !CHKPIX(1) && !CHKPIX(-w-1) && !CHKPIX(-w+1) && !CHKPIX(w-1) && !CHKPIX(w+1)) CHKPIX(w);
|
||||||
}
|
}
|
||||||
if (l1[MSB]==0 && !CHKPIX(-w) && !CHKPIX(-1)) CHKPIX(w);
|
if (l1[MSB]==0 && !CHKPIX(-w) && !CHKPIX(-1)) CHKPIX(w);
|
||||||
l1+=4;
|
l1+=4;
|
||||||
|
|
Loading…
Reference in a new issue