+2010-01-11 Carles Pina i Estany <carles@pina.cat>
+
+ * font/font.c (GENERATE_ASCII): Change the name to USE_ASCII_FAILBACK.
+ By default: disabled.
+ * Makefile.in (font/ascii.h): Remove the non-needed grub/bin2h size
+ parameter.
+
2010-01-10 Carles Pina i Estany <carles@pina.cat>
* font/font.c: Update copyright years.
$(builddir)/grub-mkfont --ascii-bitmaps -o $@ $(FONT_SOURCE)
font/ascii.h: font/ascii.bitmaps grub-bin2h
- $(builddir)/grub-bin2h ascii_bitmaps 2048 < font/ascii.bitmaps > font/ascii.h
+ $(builddir)/grub-bin2h ascii_bitmaps < font/ascii.bitmaps > font/ascii.h
endif
endif
* along with GRUB. If not, see <http://www.gnu.org/licenses/>.
*/
-#define GENERATE_ASCII
+//#define USE_ASCII_FAILBACK 0
#include <grub/bufio.h>
#include <grub/dl.h>
#include <grub/video.h>
#include <grub/bitmap.h>
-#ifdef GENERATE_ASCII
+#ifdef USE_ASCII_FAILBACK
#include "ascii.h"
#endif
/* Flag to ensure module is initialized only once. */
static grub_uint8_t font_loader_initialized;
-#ifdef GENERATE_ASCII
+#ifdef USE_ASCII_FAILBACK
static struct grub_font_glyph *ascii_font_glyph[0x80];
#endif
static struct grub_font_glyph *
ascii_glyph_lookup (grub_uint32_t code)
{
-#ifdef GENERATE_ASCII
+#ifdef USE_ASCII_FAILBACK
static int ascii_failback_initialized = 0;
if (code >= 0x80)