Huge refactor of screen size and coordinate management, port from trunk
Authored by: watusimoto 2010-11-02
Parent: [r976]
Child: [r978]