Use objects instead of pointers for video modes.