mirror of
https://github.com/apache/nuttx.git
synced 2026-05-28 11:56:10 +08:00
app/graphics/nxbe/nxbe_setsize.c: Fix backward source/destination in memcpy() in new per-window framebuffer logic.
This commit is contained in:
@@ -407,7 +407,7 @@ void up_addregion(void)
|
|||||||
else
|
else
|
||||||
{
|
{
|
||||||
/* Use the entire SDRAM for heap (possible reserving a portion at
|
/* Use the entire SDRAM for heap (possible reserving a portion at
|
||||||
* the beginning of DRAM.
|
* the beginning of DRAM).
|
||||||
*/
|
*/
|
||||||
|
|
||||||
dram_start = LPC17_EXTDRAM_CS0 + CONFIG_LPC17_EXTDRAMHEAP_OFFSET;
|
dram_start = LPC17_EXTDRAM_CS0 + CONFIG_LPC17_EXTDRAMHEAP_OFFSET;
|
||||||
|
|||||||
@@ -216,6 +216,6 @@ void nxbe_fill(FAR struct nxbe_window_s *wnd,
|
|||||||
|
|
||||||
/* Rend the bitmap directly to the graphics device in any case */
|
/* Rend the bitmap directly to the graphics device in any case */
|
||||||
|
|
||||||
nxbe_fill_dev(wnd, &remaining, color);
|
nxbe_fill_dev(wnd, &remaining, color);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -177,7 +177,7 @@ static void nxbe_realloc(FAR struct nxbe_window_s *wnd,
|
|||||||
{
|
{
|
||||||
/* Copy valid row data */
|
/* Copy valid row data */
|
||||||
|
|
||||||
memcpy(src, dest, minstride);
|
memcpy(dest, src, minstride);
|
||||||
|
|
||||||
/* Pad any extra pixel data on the right (with zeroes?) */
|
/* Pad any extra pixel data on the right (with zeroes?) */
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user