GUI adapting screen resolution in realtime