From: Vladimir 'phcoder' Serbinenko Date: Tue, 29 Mar 2011 16:34:05 +0000 (+0200) Subject: Send blend_text_bg when any backgorund is set as opposed to only when streteched... X-Git-Tag: 2.00~1234^2~1 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=cf4d3fa6407417a6ecdc82ed886484400789cde5;p=thirdparty%2Fgrub.git Send blend_text_bg when any backgorund is set as opposed to only when streteched background is set --- diff --git a/grub-core/term/gfxterm.c b/grub-core/term/gfxterm.c index 8a75df93c..1d850abd4 100644 --- a/grub-core/term/gfxterm.c +++ b/grub-core/term/gfxterm.c @@ -1174,7 +1174,6 @@ grub_gfxterm_background_image_cmd (grub_extcmd_context_t ctxt, /* Replace the original bitmap with the scaled one. */ grub_video_bitmap_destroy (bitmap); bitmap = scaled_bitmap; - blend_text_bg = 1; } } } @@ -1182,6 +1181,8 @@ grub_gfxterm_background_image_cmd (grub_extcmd_context_t ctxt, /* If bitmap was loaded correctly, display it. */ if (bitmap) { + blend_text_bg = 1; + /* Determine bitmap dimensions. */ bitmap_width = grub_video_bitmap_get_width (bitmap); bitmap_height = grub_video_bitmap_get_height (bitmap);