From 8f37690a89ad75ee52508fe6ee33d2c6560219e5 Mon Sep 17 00:00:00 2001 From: Stefan Seyfried Date: Tue, 20 Feb 2018 00:04:28 +0100 Subject: [PATCH] yaft: revert to buffer offset calculation for blit2FB the implementation of the xp/yp handling in blit2FB is different on different architectures, and the semantics are unclear, so just calculate a buffer offset instead and use yp=0 Origin commit data ------------------ Branch: ni/coolstream Commit: https://github.com/neutrino-images/ni-neutrino/commit/c8f6ff9a1828b0a51c01ed92399fab34376903df Author: Stefan Seyfried Date: 2018-02-20 (Tue, 20 Feb 2018) ------------------ This commit was generated by Migit --- src/gui/widget/yaft/yaft_priv.cpp | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/gui/widget/yaft/yaft_priv.cpp b/src/gui/widget/yaft/yaft_priv.cpp index f923c0bd4..6bc37d029 100644 --- a/src/gui/widget/yaft/yaft_priv.cpp +++ b/src/gui/widget/yaft/yaft_priv.cpp @@ -825,10 +825,11 @@ void YaFT_p::refresh() #if 1 if (fb.dy_max != -1) { int blit_height = fb.dy_max - fb.dy_min; - fb.cfb->blit2FB(fb.buf, fb.width, blit_height, fb.xstart, fb.ystart+fb.dy_min, 0, fb.dy_min); + uint32_t *buf = fb.buf + fb.width * fb.dy_min; + fb.cfb->blit2FB(buf, fb.width, blit_height, fb.xstart, fb.ystart + fb.dy_min); } #else - fb.cfb->blit2FB(fb.buf, fb.width, fb.height, fb.xstart, fb.ystart, 0, 0); + fb.cfb->blit2FB(fb.buf, fb.width, fb.height, fb.xstart, fb.ystart); #endif fb.dy_min = fb.height; fb.dy_max = -1;