Simplify SDL_BLENDMODE_MUL

This commit is contained in:
Sylvain authored and Sylvain Becker committed 2023-03-16 20:27:09 +01:00
1 parent bd70ce7f94
commit 7d26ba754a
4 files changed
+2 -13

No files matched your search

-4
View File
@@ -178,10 +178,6 @@ void SDL_Blit_Slow(SDL_BlitInfo *info)
if (dstB > 255) {
dstB = 255;
}
dstA = ((srcA * dstA) + (dstA * (255 - srcA))) / 255;
if (dstA > 255) {
dstA = 255;
}
break;
}
if (FORMAT_HAS_ALPHA(dstfmt_val)) {