Original Post
I need to rotate the Windows desktop to portrait mode from within my C++ program. I can do it from the NVidia control panel, but how do I do it from C++? Some Win32 API call instead of NVRotate is fine as well, as long as the hardware cursor also gets rotated as NVRotate does. I cannot use ChangeDisplaySettingsEx() since EnumDisplaySettingsEx() shows only 0 for allowable display orientation, and thus NVRotate must be doing the rotation through some other call to the NVidia driver :( [Edit] This seems to work, in case anyone else needs this sort of thing: system("rundll32 NvCpl.dll,dtcfg rotate 0 90"); Now, how do I do it on Linux? [Edited by - Prune on January 7, 2009 4:10:37 PM]