Adapt line endings. Add further attributes. Remove unnecessary variable _drawn in windows.

Thanks to DAT: https://github.com/Dgame/DAT