PuffTheMagic/wTerm — pull request #74 by dtzWill (2012-01-28 07:40:50+00:00)
Title: Small fix to set the background color of empty cells.

Previously it would fall back to '0' (black) in all cases, ignoring theme.

To see this in action, try a theme such as 'dark pastels' and then run vttest, menu 2. During the scroll tests we see it showing black background for empty cells instead of the correct theme background. This commit fixes that by pre-setting the background color to be, well, the theme's background color.

The shader should probably know what characters are unset, since while this commit fixes this issue, in general it seems that the fact that an empty cell renders correctly is more luck than anything else (which is why this was wrong). On that, can '0' be a valid character index? If not, we could update the shader to check that and render accordingly.

Anyway, this works for now.