mirror of
https://github.com/apache/nuttx.git
synced 2026-06-06 00:14:22 +08:00
configs/open1788/pwfb: Add an example for testing per-window frame buffers. arch/arm/src/lpc17xx: Add a configuration option to skip over the framebuffer when adding DRAM to the heap. graphics: Early fixes from testing per-window framebuffer. Still lots of problems.
This commit is contained in:
@@ -117,7 +117,7 @@ static void nxbe_realloc(FAR struct nxbe_window_s *wnd,
|
||||
newidth = wnd->bounds.pt2.x - wnd->bounds.pt1.x + 1;
|
||||
newheight = wnd->bounds.pt2.y - wnd->bounds.pt1.y + 1;
|
||||
bpp = wnd->be->plane[0].pinfo.bpp;
|
||||
newstride = (bpp * newidth + 7) >> 8;
|
||||
newstride = (bpp * newidth + 7) >> 3;
|
||||
newfbsize = newstride * newheight;
|
||||
|
||||
#ifdef CONFIG_BUILD_KERNEL
|
||||
@@ -134,7 +134,9 @@ static void nxbe_realloc(FAR struct nxbe_window_s *wnd,
|
||||
{
|
||||
/* Fall back to no RAM back up */
|
||||
|
||||
gerr("ERROR: mm_pgalloc() failed\n");
|
||||
gerr("ERROR: mm_pgalloc() failed for fbsize=%lu, npages=%u\n",
|
||||
(unsigned long)newfbsize, npages);
|
||||
|
||||
mm_pgfree(wnd->fbmem, wnd->npages);
|
||||
wnd->stride = 0;
|
||||
wnd->npages = 0;
|
||||
@@ -150,7 +152,9 @@ static void nxbe_realloc(FAR struct nxbe_window_s *wnd,
|
||||
{
|
||||
/* Fall back to no RAM back up */
|
||||
|
||||
gerr("ERROR: mm_pgalloc() failed\n");
|
||||
gerr("ERROR: kumm_malloc() failed for fbsize=%lu\n",
|
||||
(unsigned long)newfbsize);
|
||||
|
||||
kumm_free(wnd->fbmem);
|
||||
wnd->stride = 0;
|
||||
wnd->fbmem = NULL;
|
||||
|
||||
Reference in New Issue
Block a user