Automatically expand viewport

If the display is set to 640×480, this hack will test if there is a border around the display using the comparison function and value specified, and if so, expands the inner 512×448 pixels to the 640×480 screen. In addition, if the display is set to 320×240, this will expand the inner 256×224 pixels to the display.

This hack is intended for emulators and similar applications that render at 256×224 or 512×448 resolution, while allowing menus to continue to display properly.

For best quality, use a scaled display mode when using this hack.

Currently, this hack only reads the upper-left pixel of the display.

The following options are available:

512×448 to 640×480

Expands 512×448 resolutions to the 640×480 display.

512×480 to 640×480

Expands 512×480 resolutions to the 640×480 display (scaling only in the horizontal direction).  This can be useful for displaying all 480 lines in NES emulation, or when outputting to a CRT display.