Mostly Direct2D fixes.