When resizing and only a single window is present in the current layout, use that window's background color to fill in the blank areas.

This commit is contained in:
Kovid Goyal
2019-05-29 09:01:57 +05:30
parent 8193b2a44b
commit 020c1311ca
4 changed files with 19 additions and 5 deletions

View File

@@ -476,8 +476,8 @@ set_cell_uniforms(float current_inactive_text_alpha) {
}
void
blank_canvas(float background_opacity) {
#define C(shift) (((GLfloat)((OPT(background) >> shift) & 0xFF)) / 255.0f)
blank_canvas(float background_opacity, color_type color) {
#define C(shift) (((GLfloat)((color >> shift) & 0xFF)) / 255.0f)
glClearColor(C(16), C(8), C(0), background_opacity);
#undef C
glClear(GL_COLOR_BUFFER_BIT);