None of the display preferences work.
Now it's been doing it in both Windows and OS X. The only way it doesn't do it is if I'm using my 20" display, or if I restart specifically using the BootCamp icon in the toolbar in Windows.
I have since restored my system to a single OS X partition, but the problem still remains. It starts as soon as the boot up screen appears.