aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGravatar Timo Ketola <timo.ketola@exertus.fi>2018-03-08 09:22:05 +0200
committerGravatar Peter Korsgaard <peter@korsgaard.com>2018-03-08 09:06:33 +0100
commit5be0b3440e81aa364fb337b5e981f3396bdf8e02 (patch)
tree9904cf54124ae31ed28cfeafe1a48a9de05ff5a1
parent8eee2fbf09e56f7a3db86302a8d693391ef04630 (diff)
downloadbuildroot-5be0b3440e81aa364fb337b5e981f3396bdf8e02.tar.gz
buildroot-5be0b3440e81aa364fb337b5e981f3396bdf8e02.tar.bz2
fbgrab: add patch fixing pixel format report
When verbosive, fbgrab reports pixel format. Green and blue offset and msb_right fields are accidentally swapped there. This commit adds a patch which straightens them up. Upstream-Status: Submitted [Gunnar Monell <gmo@linux.nu>] Signed-off-by: Timo Ketola <timo.ketola@exertus.fi> Signed-off-by: Peter Korsgaard <peter@korsgaard.com>
-rw-r--r--package/fbgrab/0100-fix-pixfmt-report.patch22
1 files changed, 22 insertions, 0 deletions
diff --git a/package/fbgrab/0100-fix-pixfmt-report.patch b/package/fbgrab/0100-fix-pixfmt-report.patch
new file mode 100644
index 0000000000..18bcf96df2
--- /dev/null
+++ b/package/fbgrab/0100-fix-pixfmt-report.patch
@@ -0,0 +1,22 @@
+Fix pixel format report
+
+When fbgrab tells about the framebuffer pixel format, blue and green
+are accidentally swapped in 'length' and 'msb_right' columns. Let's
+order everything as RGB.
+
+Signed-off-by timo.ketola@exertus.fi
+
+diff -u a/fbgrab.c b/fbgrab.c
+--- a/fbgrab.c 2018-03-07 11:42:04.739250433 +0200
++++ b/fbgrab.c 2018-03-07 11:43:26.128043877 +0200
+@@ -169,8 +169,8 @@
+ fprintf(stderr, "bits_per_pixel: %i\n", fb_varinfo_p->bits_per_pixel);
+ fprintf(stderr, "grayscale: %s\n", fb_varinfo_p->grayscale ? "true" : "false");
+ fprintf(stderr, "red: offset: %i, length: %i, msb_right: %i\n", fb_varinfo_p->red.offset, fb_varinfo_p->red.length, fb_varinfo_p->red.msb_right);
+- fprintf(stderr, "blue: offset: %i, length: %i, msb_right: %i\n", fb_varinfo_p->blue.offset, fb_varinfo_p->green.length, fb_varinfo_p->green.msb_right);
+- fprintf(stderr, "green: offset: %i, length: %i, msb_right: %i\n", fb_varinfo_p->green.offset, fb_varinfo_p->blue.length, fb_varinfo_p->blue.msb_right);
++ fprintf(stderr, "green: offset: %i, length: %i, msb_right: %i\n", fb_varinfo_p->green.offset, fb_varinfo_p->green.length, fb_varinfo_p->green.msb_right);
++ fprintf(stderr, "blue: offset: %i, length: %i, msb_right: %i\n", fb_varinfo_p->blue.offset, fb_varinfo_p->blue.length, fb_varinfo_p->blue.msb_right);
+ fprintf(stderr, "alpha: offset: %i, length: %i, msb_right: %i\n", fb_varinfo_p->transp.offset, fb_varinfo_p->transp.length, fb_varinfo_p->transp.msb_right);
+ fprintf(stderr, "pixel format: %s\n", fb_varinfo_p->nonstd == 0 ? "standard" : "non-standard");
+ }