diff options
author | Joel Bodenmann <joel@embedded.pro> | 2016-08-24 00:51:41 +0200 |
---|---|---|
committer | Joel Bodenmann <joel@embedded.pro> | 2016-08-24 00:51:41 +0200 |
commit | b4f96b3e2659a93ccf96362b8e3a25ef90ae435b (patch) | |
tree | 9318e504a249f3496f98a0daa592eeaa408ed99b /boards/base/Linux-Framebuffer | |
parent | 4991ba05308f3266fb60f06e2f79f6d427de73b4 (diff) | |
download | uGFX-b4f96b3e2659a93ccf96362b8e3a25ef90ae435b.tar.gz uGFX-b4f96b3e2659a93ccf96362b8e3a25ef90ae435b.tar.bz2 uGFX-b4f96b3e2659a93ccf96362b8e3a25ef90ae435b.zip |
Fixing wrong macro in Linux framebuffer board file
Diffstat (limited to 'boards/base/Linux-Framebuffer')
-rw-r--r-- | boards/base/Linux-Framebuffer/board_framebuffer.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/boards/base/Linux-Framebuffer/board_framebuffer.h b/boards/base/Linux-Framebuffer/board_framebuffer.h index 8747d87e..c81e4d87 100644 --- a/boards/base/Linux-Framebuffer/board_framebuffer.h +++ b/boards/base/Linux-Framebuffer/board_framebuffer.h @@ -96,7 +96,7 @@ fb_var.reserved[2] = 0; fb_var.xoffset = 0; fb_var.yoffset = 0; - fb_var.bits_per_pixel = sizeof(LLD_COLORTYPE)*8; + fb_var.bits_per_pixel = sizeof(LLDCOLOR_TYPE)*8; fb_var.grayscale = 0; fb_var.activate = FB_ACTIVATE_NOW; if (ioctl(fb, FBIOPUT_VSCREENINFO, &fb_var) == -1 || ioctl (fb, FBIOGET_VSCREENINFO, &fb_var) == -1) { @@ -114,7 +114,7 @@ fprintf(stderr, "GDISP Framebuffer: The display is not in TRUECOLOR mode\n"); exit(-1); } - if (fb_var.bits_per_pixel != sizeof(LLD_COLORTYPE)*8) { + if (fb_var.bits_per_pixel != sizeof(LLDCOLOR_TYPE)*8) { fprintf(stderr, "GDISP Framebuffer: The display is %u not %u bits per pixel\n", fb_var.bits_per_pixel, LLDCOLOR_TYPE_BITS); exit(-1); } |