Fix computation of video mode sizes (#122).

Windowed modes and non-wide fullscreen modes are okay now.