2013-06-07 18:03:56 +00:00
|
|
|
From 79cd77365b72e4fc4131b1b2f87b10875536495f Mon Sep 17 00:00:00 2001
|
2013-05-02 20:54:52 +00:00
|
|
|
From: Vladimir 'phcoder' Serbinenko <phcoder@gmail.com>
|
|
|
|
Date: Fri, 5 Apr 2013 11:13:37 +0200
|
2013-06-12 19:24:37 +00:00
|
|
|
Subject: [PATCH 265/482] * util/grub-mkfont.c: Prefer enum to #define.
|
2013-05-02 20:54:52 +00:00
|
|
|
|
|
|
|
---
|
|
|
|
ChangeLog | 4 ++++
|
|
|
|
util/grub-mkfont.c | 11 +++++++----
|
|
|
|
2 files changed, 11 insertions(+), 4 deletions(-)
|
|
|
|
|
|
|
|
diff --git a/ChangeLog b/ChangeLog
|
|
|
|
index f90fab4..41370a1 100644
|
|
|
|
--- a/ChangeLog
|
|
|
|
+++ b/ChangeLog
|
|
|
|
@@ -1,5 +1,9 @@
|
|
|
|
2013-04-05 Vladimir Serbinenko <phcoder@gmail.com>
|
|
|
|
|
|
|
|
+ * util/grub-mkfont.c: Prefer enum to #define.
|
|
|
|
+
|
|
|
|
+2013-04-05 Vladimir Serbinenko <phcoder@gmail.com>
|
|
|
|
+
|
|
|
|
* grub-core/commands/acpi.c: Use sizeof rather than hardcoding the size.
|
|
|
|
|
|
|
|
2013-04-05 Vladimir Serbinenko <phcoder@gmail.com>
|
|
|
|
diff --git a/util/grub-mkfont.c b/util/grub-mkfont.c
|
|
|
|
index 83fb2d2..0343fd2 100644
|
|
|
|
--- a/util/grub-mkfont.c
|
|
|
|
+++ b/util/grub-mkfont.c
|
|
|
|
@@ -73,10 +73,13 @@ enum file_formats
|
|
|
|
WIDTH_SPEC
|
|
|
|
};
|
|
|
|
|
|
|
|
-#define GRUB_FONT_FLAG_BOLD 1
|
|
|
|
-#define GRUB_FONT_FLAG_NOBITMAP 2
|
|
|
|
-#define GRUB_FONT_FLAG_NOHINTING 4
|
|
|
|
-#define GRUB_FONT_FLAG_FORCEHINT 8
|
|
|
|
+enum
|
|
|
|
+ {
|
|
|
|
+ GRUB_FONT_FLAG_BOLD = 1,
|
|
|
|
+ GRUB_FONT_FLAG_NOBITMAP = 2,
|
|
|
|
+ GRUB_FONT_FLAG_NOHINTING = 4,
|
|
|
|
+ GRUB_FONT_FLAG_FORCEHINT = 8
|
|
|
|
+ };
|
|
|
|
|
|
|
|
struct grub_font_info
|
|
|
|
{
|
|
|
|
--
|
2013-06-07 18:03:56 +00:00
|
|
|
1.8.2.1
|
2013-05-02 20:54:52 +00:00
|
|
|
|