From: asterix Date: Tue, 10 Jun 2008 17:07:57 +0000 (+0000) Subject: Use pgm type to fix warning. X-Git-Tag: 2.0.0~502 X-Git-Url: https://codewiz.org/gitweb?a=commitdiff_plain;h=f8be8c5157acebadc6cbb87fbb4fa787a6264699;p=bertos.git Use pgm type to fix warning. git-svn-id: https://src.develer.com/svnoss/bertos/trunk@1432 38d2e660-2303-0410-9eaa-f027e97ec537 --- diff --git a/bertos/gfx/font.h b/bertos/gfx/font.h index badb5682..603b11de 100644 --- a/bertos/gfx/font.h +++ b/bertos/gfx/font.h @@ -30,18 +30,19 @@ * * --> * + * \brief Font 8x6 IBM-PC 8bit + * * \version $Id$ * * \author Stefano Fedrigo * - * \brief Font 8x6 IBM-PC 8bit */ #ifndef GFX_FONT_H #define GFX_FONT_H -#include /* uint8_t */ -#include /* PROGMEM */ +#include /* uint8_t */ +#include /* PROGMEM */ typedef struct Font { @@ -51,7 +52,7 @@ typedef struct Font * Data is an array of at most 256 glyphs packed together. * Raster format must be the same of the bitmap. */ - const PROGMEM uint8_t *glyph; + const pgm_uint8_t *glyph; uint8_t width; /**< Pixel width of character cell. */ uint8_t height; /**< Pixel height of character cell. */ @@ -60,8 +61,8 @@ typedef struct Font uint8_t last; /**< Last encoded character in glyph array (inclusive). */ /** Array of glyph offsets in bytes. NULL for fixed-width fonts. */ - const PROGMEM uint16_t *offset; - const PROGMEM uint8_t *widths; + const pgm_uint16_t *offset; + const pgm_uint8_t *widths; } Font;