]> git.ipfire.org Git - thirdparty/grub.git/commitdiff
* grub-core/video/i386/pc/vbe.c (grub_video_vbe_setup): Replace
authorRobert Millan <rmh@gnu.org>
Thu, 24 Oct 2013 06:53:04 +0000 (08:53 +0200)
committerVladimir Serbinenko <phcoder@gmail.com>
Thu, 24 Oct 2013 06:53:04 +0000 (08:53 +0200)
numeric constants with their symbolic equivalent.
Taken from branch "vbe-on-coreboot".

ChangeLog
grub-core/video/i386/pc/vbe.c

index 64a89cbe550fde62842822634901bd532b31d115..65b82c6144e2a0b94712a52f9c818ca57924bd82 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,9 @@
+2013-10-24  Robert Millan  <rmh@gnu.org>
+
+       * grub-core/video/i386/pc/vbe.c (grub_video_vbe_setup): Replace
+       numeric constants with their symbolic equivalent.
+       Taken from branch "vbe-on-coreboot".
+
 2013-10-22  Vladimir Serbinenko  <phcoder@gmail.com>
 
        * docs/grub.texi: Fix ordering and use pxref rather than xref.
index 6f7ede1fc5d2ec99cfd04894cc5c910670d83dbd..f6cd51c7f39ec15d4639be5ea494d2070e2a54c4 100644 (file)
@@ -1023,19 +1023,19 @@ grub_video_vbe_setup (unsigned int width, unsigned int height,
           break;
         }
 
-      if ((vbe_mode_info.mode_attributes & 0x001) == 0)
+      if ((vbe_mode_info.mode_attributes & GRUB_VBE_MODEATTR_SUPPORTED) == 0)
         /* If not available, skip it.  */
         continue;
 
-      if ((vbe_mode_info.mode_attributes & 0x008) == 0)
+      if ((vbe_mode_info.mode_attributes & GRUB_VBE_MODEATTR_COLOR) == 0)
         /* Monochrome is unusable.  */
         continue;
 
-      if ((vbe_mode_info.mode_attributes & 0x080) == 0)
+      if ((vbe_mode_info.mode_attributes & GRUB_VBE_MODEATTR_LFB_AVAIL) == 0)
         /* We support only linear frame buffer modes.  */
         continue;
 
-      if ((vbe_mode_info.mode_attributes & 0x010) == 0)
+      if ((vbe_mode_info.mode_attributes & GRUB_VBE_MODEATTR_GRAPHICS) == 0)
         /* We allow only graphical modes.  */
         continue;