loader efifb: implement uga_autoresize as a call to text_autoresize

UGA does not have the same kind of mode enumeration that GOP does. Implement
it instead as a call to text_autoresize so that firmwares with only UGA
present still get some kind of autoresizing behavior.

While here, rename a typo'd "gop" to "uga", although it will remain unused
for the time being.
This commit is contained in:
Kyle Evans 2018-03-26 13:45:17 +00:00
parent b93a1086cf
commit 76e00374d2

View file

@ -611,10 +611,10 @@ text_autoresize()
}
static int
uga_autoresize(EFI_UGA_DRAW_PROTOCOL *gop)
uga_autoresize(EFI_UGA_DRAW_PROTOCOL *uga)
{
return (CMD_OK);
return (text_autoresize());
}
COMMAND_SET(efi_autoresize, "efi-autoresizecons", "EFI Auto-resize Console", command_autoresize);