More seriously, this is a feature of your video card, to help it work
with screens that can physically rotate to landscape or portrait
resolution. Change it using the Ctrl+Alt+Arrow combinations. It got
the way it is because you accidentally pressed those keys.