Huw Davies : gdi32: Move the outer loop into separate functions for each direction.