These days we perform the stretching using XRender but by default it uses nearest neighbor during interpolation. Some days ago I submitted a patch to default to linear which should result in better quality but it wasn't added yet because we want to check what Windows is doing (and in the bug I wanted to fix, the bug was elsewhere).