This reverts commit d1c00c859c except hw/xfree86/common/xf86str.h that was not used by -flipPixels option.
d1c00c859c