Fix eclipse warnings.
Rename cursorStyle to selectionStyle.
Make cursor compatible with hardware graphics.

The PixelXorXfermode that we had previously been using is not compatible
with hardware rendering.

Now we draw an off-screen alpha mask that's the desired shape, and
use that to draw the cursor on screen.
Re-enable hardware accelerated text drawing.
Algorithmicly choose cursor foreground color.