Some little modularization in the view part (wins.c)

Actually I just separated it in different C source files.
Later it'll be split with header files and be more elegant =P