gdi32: Move the colour setting to a separate function.