diff options
author | Ulf Samuelsson <ulf.samuelsson@atmel.com> | 2007-07-23 08:59:10 +0000 |
---|---|---|
committer | Ulf Samuelsson <ulf.samuelsson@atmel.com> | 2007-07-23 08:59:10 +0000 |
commit | 96a8fc9f5964c2b20a4eb45192cbe33bc0fa4cbf (patch) | |
tree | 20e4ffc7a610c8220a8f6144f94731277abb196c /package/fbv/fbv-1.0b-fix-24bpp-support-on-big-endian.patch | |
parent | aa25036b4d84a1ea767ca89a2f84b75d54527924 (diff) |
Add fbv 'frame buffer viewer' package
Diffstat (limited to 'package/fbv/fbv-1.0b-fix-24bpp-support-on-big-endian.patch')
-rw-r--r-- | package/fbv/fbv-1.0b-fix-24bpp-support-on-big-endian.patch | 32 |
1 files changed, 32 insertions, 0 deletions
diff --git a/package/fbv/fbv-1.0b-fix-24bpp-support-on-big-endian.patch b/package/fbv/fbv-1.0b-fix-24bpp-support-on-big-endian.patch new file mode 100644 index 000000000..23185ac46 --- /dev/null +++ b/package/fbv/fbv-1.0b-fix-24bpp-support-on-big-endian.patch @@ -0,0 +1,32 @@ +diff -upr a/fb_display.c b/fb_display.c +--- a/fb_display.c 2007-06-01 16:52:45.000000000 +0200 ++++ b/fb_display.c 2007-06-01 16:51:43.000000000 +0200 +@@ -307,7 +307,7 @@ void* convertRGB2FB(int fh, unsigned cha + { + unsigned long i; + void *fbbuff = NULL; +- u_int8_t *c_fbbuff; ++ u_int8_t *c_fbbuff; + u_int16_t *s_fbbuff; + u_int32_t *i_fbbuff; + +@@ -335,6 +335,16 @@ void* convertRGB2FB(int fh, unsigned cha + fbbuff = (void *) s_fbbuff; + break; + case 24: ++ *cpp = 3; ++ c_fbbuff = (unsigned char *) malloc(count * 3 * sizeof(unsigned char)); ++ for(i = 0; i < (3 * count); i += 3) { ++ /* Big endian framebuffer. */ ++ c_fbbuff[i] = rgbbuff[i+2]; ++ c_fbbuff[i+1] = rgbbuff[i+1]; ++ c_fbbuff[i+2] = rgbbuff[i]; ++ } ++ fbbuff = (void *) c_fbbuff; ++ break; + case 32: + *cpp = 4; + i_fbbuff = (unsigned int *) malloc(count * sizeof(unsigned int)); +Only in build_avr32/fbv-1.0b-modified: .fb_display.c.swp +Binary files build_avr32/fbv-1.0b/fb_display.o and build_avr32/fbv-1.0b-modified/fb_display.o differ +Binary files build_avr32/fbv-1.0b/fbv and build_avr32/fbv-1.0b-modified/fbv differ |