Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
[vesafb] Set "magic" colour to transparent when a background picture …
…is used

Use the magic colour facility to cause the user interface background
to become transparent when we have a background picture.

Signed-off-by: Michael Brown <mcb30@ipxe.org>
  • Loading branch information
mcb30 committed Dec 9, 2013
1 parent f6dce77 commit 8f0173b
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions src/arch/i386/interface/pcbios/vesafb.c
Expand Up @@ -31,6 +31,7 @@ FILE_LICENCE ( GPL2_OR_LATER );
#include <realmode.h>
#include <ipxe/console.h>
#include <ipxe/io.h>
#include <ipxe/ansicol.h>
#include <ipxe/fbcon.h>
#include <ipxe/vesafb.h>
#include <config/console.h>
Expand Down Expand Up @@ -462,6 +463,7 @@ static int vesafb_configure ( struct console_configuration *config ) {
if ( ! vesafb_console.disabled ) {
vesafb_fini();
bios_console.disabled &= ~CONSOLE_DISABLED_OUTPUT;
ansicol_reset_magic();
}
vesafb_console.disabled = CONSOLE_DISABLED;

Expand All @@ -480,6 +482,10 @@ static int vesafb_configure ( struct console_configuration *config ) {
vesafb_console.disabled = 0;
bios_console.disabled |= CONSOLE_DISABLED_OUTPUT;

/* Set magic colour to transparent if we have a background picture */
if ( config->pixbuf )
ansicol_set_magic_transparent();

return 0;
}

Expand Down

0 comments on commit 8f0173b

Please sign in to comment.