]> git.ipfire.org Git - thirdparty/grub.git/commitdiff
Send blend_text_bg when any backgorund is set as opposed to only when streteched...
authorVladimir 'phcoder' Serbinenko <phcoder@gmail.com>
Tue, 29 Mar 2011 16:34:05 +0000 (18:34 +0200)
committerVladimir 'phcoder' Serbinenko <phcoder@gmail.com>
Tue, 29 Mar 2011 16:34:05 +0000 (18:34 +0200)
grub-core/term/gfxterm.c

index 8a75df93c871450610e87845dbdd2bd43ba9ee50..1d850abd43839f88b56c311d429afe68c7fc467c 100644 (file)
@@ -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);