Don't dim the screen if already dimmed.

This commit is contained in:
sorgelig
2019-06-26 02:35:50 +08:00
parent e52ae6ba82
commit 7f6250cfd8
2 changed files with 7 additions and 6 deletions

View File

@@ -1029,9 +1029,9 @@ void video_menu_bg(int n, int idle)
}
}
if (curtain && idle > 1)
if (curtain)
{
if (*bg)
if (idle > 1 && *bg)
{
imlib_context_set_image(*bg);
imlib_blend_image_onto_image(curtain, 1,