xfree86/modes: Make cursor position transform a helper function
authorAaron Plattner <aplattner@nvidia.com>
Thu, 25 Aug 2011 22:41:55 +0000 (15:41 -0700)
committerKeith Packard <keithp@keithp.com>
Mon, 3 Oct 2011 18:30:04 +0000 (11:30 -0700)
commit57cd32e93425597317b4b7722859155419836e4c
tree3a249171d1c4ec059c79bda01054015ecc4e7def
parent245cb8e94fd15990e1b7d6622added460f104dba
xfree86/modes: Make cursor position transform a helper function

When the driver can handle the crtc transform in hardware, it sets
crtc->driverIsPerformingTransform, which turns off both the shadow
layer and the cursor's position-transforming code.  However, some
drivers actually do require the cursor position to still be
transformed in these cases.  Move the cursor position transform into a
helper function that can be called by such drivers.

Signed-off-by: Aaron Plattner <aplattner@nvidia.com>
hw/xfree86/modes/xf86Crtc.h
hw/xfree86/modes/xf86Cursors.c