Move the logic that sets the bitmap object of the memory device context from transline_helper() to TScreen::Setup(). This caused a measurable performance gain how long it takes to draw lines (20% improvement for circles, 2% improvement for squirals).