aboutsummaryrefslogtreecommitdiffstats
path: root/src/gdisp/gdisp_pixmap.c
diff options
context:
space:
mode:
authorinmarket <andrewh@inmarket.com.au>2018-11-03 10:51:23 +1000
committerinmarket <andrewh@inmarket.com.au>2018-11-03 10:51:23 +1000
commit7c5a6c928fa7129cf754c9c73c5c7ae39372ba9d (patch)
tree95cf152ef65ff19c7b2515b427bbe86b92b611d0 /src/gdisp/gdisp_pixmap.c
parent8bd70d953bcd3e32ceb4e45a4e561c973726280a (diff)
downloaduGFX-7c5a6c928fa7129cf754c9c73c5c7ae39372ba9d.tar.gz
uGFX-7c5a6c928fa7129cf754c9c73c5c7ae39372ba9d.tar.bz2
uGFX-7c5a6c928fa7129cf754c9c73c5c7ae39372ba9d.zip
For all source files update integer types to the new gI8 etc type names
Diffstat (limited to 'src/gdisp/gdisp_pixmap.c')
-rw-r--r--src/gdisp/gdisp_pixmap.c14
1 files changed, 7 insertions, 7 deletions
diff --git a/src/gdisp/gdisp_pixmap.c b/src/gdisp/gdisp_pixmap.c
index 339e5cd2..c6a1e21e 100644
--- a/src/gdisp/gdisp_pixmap.c
+++ b/src/gdisp/gdisp_pixmap.c
@@ -44,7 +44,7 @@
typedef struct pixmap {
#if GDISP_NEED_PIXMAP_IMAGE
- uint8_t imghdr[8]; // This field must come just before the data member.
+ gU8 imghdr[8]; // This field must come just before the data member.
#endif
gColor pixels[1]; // We really want pixels[0] but some compilers don't allow that even though it is C standard.
} pixmap;
@@ -67,12 +67,12 @@ GDisplay *gdispPixmapCreate(gCoord width, gCoord height) {
#if GDISP_NEED_PIXMAP_IMAGE
p->imghdr[0] = 'N';
p->imghdr[1] = 'I';
- p->imghdr[2] = (uint8_t)(width >> 8);
- p->imghdr[3] = (uint8_t)width;
- p->imghdr[4] = (uint8_t)(height >> 8);
- p->imghdr[5] = (uint8_t)height;
- p->imghdr[6] = (uint8_t)(GDISP_PIXELFORMAT >> 8);
- p->imghdr[7] = (uint8_t)(GDISP_PIXELFORMAT);
+ p->imghdr[2] = (gU8)(width >> 8);
+ p->imghdr[3] = (gU8)width;
+ p->imghdr[4] = (gU8)(height >> 8);
+ p->imghdr[5] = (gU8)height;
+ p->imghdr[6] = (gU8)(GDISP_PIXELFORMAT >> 8);
+ p->imghdr[7] = (gU8)(GDISP_PIXELFORMAT);
#endif
// Save the width and height so the driver can retrieve it.