mirror of
https://github.com/Ysurac/openmptcprouter-feeds.git
synced 2025-03-09 15:40:03 +00:00
update app
This commit is contained in:
parent
b8ec680e11
commit
8836ce80c2
255 changed files with 9752 additions and 23582 deletions
21
serdisplib/patches/002-allow-1bpp-framebuffer.patch
Normal file
21
serdisplib/patches/002-allow-1bpp-framebuffer.patch
Normal file
|
@ -0,0 +1,21 @@
|
|||
--- a/src/serdisp_specific_framebuffer.c
|
||||
+++ b/src/serdisp_specific_framebuffer.c
|
||||
@@ -312,13 +312,15 @@ serdisp_t* serdisp_framebuffer_setup(con
|
||||
|
||||
if (fb_success) {
|
||||
/* check if colour mode is supported */
|
||||
- if (! (vinfo.bits_per_pixel == 16 || vinfo.bits_per_pixel == 24 || vinfo.bits_per_pixel == 32) ) {
|
||||
+ if (! (vinfo.bits_per_pixel == 1 ||vinfo.bits_per_pixel == 16 || vinfo.bits_per_pixel == 24 || vinfo.bits_per_pixel == 32) ) {
|
||||
sd_error(SERDISP_ERUNTIME, "unsupported colour depth (%d)", vinfo.bits_per_pixel);
|
||||
fb_success = 0;
|
||||
}
|
||||
}
|
||||
-
|
||||
- dd->scrbuf_size = vinfo.xres * vinfo.yres * vinfo.bits_per_pixel/8;
|
||||
+ if (vinfo.bits_per_pixel == 1)
|
||||
+ dd->scrbuf_size = (vinfo.xres * vinfo.yres) / 8;
|
||||
+ else
|
||||
+ dd->scrbuf_size = vinfo.xres * vinfo.yres * vinfo.bits_per_pixel/8;
|
||||
|
||||
if (fb_success) {
|
||||
/* map framebuffer device to memory */
|
Loading…
Add table
Add a link
Reference in a new issue