Use normal win colors in fullscreen mode

Fixes issues #361 and #367
This commit is contained in:
Bert Münnich
2019-07-16 19:18:13 +02:00
parent 6511d681ac
commit 28868767e6
4 changed files with 11 additions and 31 deletions

View File

@ -497,7 +497,7 @@ void img_render(img_t *img)
}
imlib_image_put_back_data(data);
} else {
c = win->fullscreen ? win->black.pixel : win->bg.pixel;
c = win->bg.pixel;
imlib_context_set_color(c >> 16 & 0xFF, c >> 8 & 0xFF, c & 0xFF, 0xFF);
imlib_image_fill_rectangle(0, 0, dw, dh);
}