From 6a6dba656e2fb20792b68b6e466f63d83f2992ff Mon Sep 17 00:00:00 2001 From: Stefan Seyfried Date: Sun, 28 Jan 2018 20:34:24 +0100 Subject: [PATCH] yaft: optimize blit2FB call for partial blit Origin commit data ------------------ Commit: https://github.com/neutrino-images/ni-neutrino/commit/35eaa2733dcf8d0af2997e566521268b7dd6122e Author: Stefan Seyfried Date: 2018-01-28 (Sun, 28 Jan 2018) --- src/gui/widget/yaft/yaft_priv.cpp | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/gui/widget/yaft/yaft_priv.cpp b/src/gui/widget/yaft/yaft_priv.cpp index 5217c6326..3f44eefb3 100644 --- a/src/gui/widget/yaft/yaft_priv.cpp +++ b/src/gui/widget/yaft/yaft_priv.cpp @@ -821,8 +821,7 @@ void YaFT_p::refresh() #if 1 if (fb.dy_max != -1) { int blit_height = fb.dy_max - fb.dy_min; - uint32_t *blit_start = fb.buf + (fb.dy_min * fb.width); - fb.cfb->blit2FB(blit_start, fb.width, blit_height, fb.xstart, fb.ystart+fb.dy_min, 0, 0); + fb.cfb->blit2FB(fb.buf, fb.width, blit_height, fb.xstart, fb.ystart+fb.dy_min, 0, fb.dy_min); } #else fb.cfb->blit2FB(fb.buf, fb.width, fb.height, fb.xstart, fb.ystart, 0, 0);