mirror of
https://github.com/Ryujinx/SDL.git
synced 2025-03-24 03:15:10 +00:00
Simplify SDL_BLENDMODE_MUL in sdlgenblit.pl
This commit is contained in:
parent
7d26ba754a
commit
18c4db678b
|
@ -392,17 +392,6 @@ __EOF__
|
|||
${d}B = ((${s}B * ${d}B) + (${d}B * (255 - ${s}A))) / 255; if (${d}B > 255) ${d}B = 255;
|
||||
__EOF__
|
||||
}
|
||||
if ( $dst_has_alpha ) {
|
||||
if ($A_is_const_FF) {
|
||||
print FILE <<__EOF__;
|
||||
${d}A = 0xFF;
|
||||
__EOF__
|
||||
} else {
|
||||
print FILE <<__EOF__;
|
||||
${d}A = ((${s}A * ${d}A) + (${d}A * (255 - ${s}A))) / 255; if (${d}A > 255) ${d}A = 255;
|
||||
__EOF__
|
||||
}
|
||||
}
|
||||
|
||||
print FILE <<__EOF__;
|
||||
break;
|
||||
|
|
Loading…
Reference in a new issue