aboutsummaryrefslogtreecommitdiffstats
path: root/boards
diff options
context:
space:
mode:
authorinmarket <andrewh@inmarket.com.au>2014-05-22 18:06:48 +1000
committerinmarket <andrewh@inmarket.com.au>2014-05-22 18:06:48 +1000
commit80d4da1bf405cec54466ab92dbfcfb6f211a86cc (patch)
tree31864a83db5339f9257c7215b4e183532ef1166c /boards
parent9ca7cc9c9e0e14930a37fd77a89db8ba55fd696b (diff)
downloaduGFX-80d4da1bf405cec54466ab92dbfcfb6f211a86cc.tar.gz
uGFX-80d4da1bf405cec54466ab92dbfcfb6f211a86cc.tar.bz2
uGFX-80d4da1bf405cec54466ab92dbfcfb6f211a86cc.zip
Linux framebuffer fixes
Diffstat (limited to 'boards')
-rw-r--r--boards/base/Linux-Framebuffer/board_framebuffer.h8
1 files changed, 4 insertions, 4 deletions
diff --git a/boards/base/Linux-Framebuffer/board_framebuffer.h b/boards/base/Linux-Framebuffer/board_framebuffer.h
index b08796fb..e1836527 100644
--- a/boards/base/Linux-Framebuffer/board_framebuffer.h
+++ b/boards/base/Linux-Framebuffer/board_framebuffer.h
@@ -7,7 +7,7 @@
// Set this to your frame buffer pixel format. Note Linux frame buffer only supports RGB modes (no BGR modes).
#ifndef GDISP_LLD_PIXELFORMAT
- #define GDISP_LLD_PIXELFORMAT GDISP_PIXELFORMAT_RGB565
+ #define GDISP_LLD_PIXELFORMAT GDISP_PIXELFORMAT_RGB888
#endif
#ifdef GDISP_DRIVER_VMT
@@ -91,7 +91,7 @@
}
#ifdef USE_SET_MODE
- fb_var.reserved[0] = 0;
+ fb_var.reserved[0] = 0;
fb_var.reserved[1] = 0;
fb_var.reserved[2] = 0;
fb_var.xoffset = 0;
@@ -113,8 +113,8 @@
fprintf(stderr, "GDISP Framebuffer: The display is not in TRUECOLOR mode\n");
exit(-1);
}
- if (fb_var.bits_per_pixel != LLDCOLOR_BITS) {
- fprintf(stderr, "GDISP Framebuffer: The display is not %u bits per pixel\n", LLDCOLOR_BITS);
+ if (fb_var.bits_per_pixel != LLDCOLOR_TYPE_BITS) {
+ fprintf(stderr, "GDISP Framebuffer: The display is %u not %u bits per pixel\n", fb_var.bits_per_pixel, LLDCOLOR_TYPE_BITS);
exit(-1);
}
if (fb_var.red.length != LLDCOLOR_BITS_R || fb_var.green.length != LLDCOLOR_BITS_G || fb_var.blue.length != LLDCOLOR_BITS_B) {