Small modifications (not done yet) for avoiding to reset the display
position when screen orientation changes.