Black bars at high resolutions

I discovered this when trying to reproduce http://smf.cataclysmdda.com/index.php?topic=4957.0 , but that issue appears to be strictly about tilesets, this is about ASCII, so I decided to open a new thread.

With very high terminal width and height (I tried at 420x135, which comes out to 1080p using an 8x8 font), black bars appear around the viewport.

I first tested this on the windows experimental-3704 sdl.
Note the black bars which appear just after default view distance cuts out:

[URL=http://imgur.com/rLGcXC0][/URL]

The map still fills the available area…

[URL=http://imgur.com/m7LqUTf][/URL]

…but after closing it, the screen doesn’t seem to be properly redrawn:

[URL=http://imgur.com/CWUlh5I][/URL]

Then I tried the latest version from git, compiled with MinGW without sdl(I can’t seem to get sdl working).

Black bars again, this time exactly at the point where default view distance cuts off:

[URL=http://imgur.com/IKw3Luj][/URL]

Moving the viewport to show it’s not actually related to the visible area:

[URL=http://imgur.com/bwS1LaP][/URL]

Map still fills the screen:

[URL=http://imgur.com/S9xOwXi][/URL]

On this version, the screen is redrawn after closing the map though, so that’s either an sdl issue or it has been fixed since 3704.

If this is actually not a bug, but an intentional limitation (rendering all those #s beyond the visible area does seem like a waste) I’d recommend moving the sidebar to the far right, similar to where the map legend is, and drawing the black bars inside. That just seems neater (and helps make it look intentional :D).