Example made for Strife:
Allows the user to switch between 4:3 and 16:9 aspect ratios at runtime and resize display to fill window size with no distortion.
Supports x1, x2 and x3 resolutions and fullscreen (experimental). Can be easily modified to include more.
Good for low-res games that require switching to widescreen.