Simplify background type 2 transform pt 1

Modify the original D code
Simplify background type 2 transform pt 2

Use x86, remove D code