mirror of
https://git.savannah.gnu.org/git/grub.git
synced 2026-10-29 10:39:22 +00:00
More video checks.
This commit is contained in:
1 parent
92323d1fb0
commit
b7c036bce3
8 files changed
+510
-128
No files matched your search
@@ -499,6 +499,9 @@ grub_video_set_mode (const char *modestring,
|
||||
char *current_mode;
|
||||
char *modevar;
|
||||
|
||||
if (grub_video_adapter_active && grub_video_adapter_active->id == GRUB_VIDEO_ADAPTER_CAPTURE)
|
||||
return GRUB_ERR_NONE;
|
||||
|
||||
modevalue &= modemask;
|
||||
|
||||
/* Take copy of env.var. as we don't want to modify that. */
|
||||
@@ -510,9 +513,6 @@ grub_video_set_mode (const char *modestring,
|
||||
if (! modevar)
|
||||
return grub_errno;
|
||||
|
||||
if (grub_video_adapter_active && grub_video_adapter_active->id == GRUB_VIDEO_ADAPTER_CAPTURE)
|
||||
return GRUB_ERR_NONE;
|
||||
|
||||
if (grub_memcmp (next_mode, "keep", sizeof ("keep")) == 0
|
||||
|| grub_memcmp (next_mode, "keep,", sizeof ("keep,") - 1) == 0
|
||||
|| grub_memcmp (next_mode, "keep;", sizeof ("keep;") - 1) == 0)
|
||||
|
||||
Reference in new issue
Block a user