yaft: optimize blit2FB call for partial blit

Origin commit data
------------------
Commit: 35eaa2733d
Author: Stefan Seyfried <seife@tuxbox-git.slipkontur.de>
Date: 2018-01-28 (Sun, 28 Jan 2018)
This commit is contained in:
Stefan Seyfried
2018-01-28 20:34:24 +01:00
committed by vanhofen
parent 20011c4a88
commit 6a6dba656e

View File

@@ -821,8 +821,7 @@ void YaFT_p::refresh()
#if 1 #if 1
if (fb.dy_max != -1) { if (fb.dy_max != -1) {
int blit_height = fb.dy_max - fb.dy_min; int blit_height = fb.dy_max - fb.dy_min;
uint32_t *blit_start = fb.buf + (fb.dy_min * fb.width); fb.cfb->blit2FB(fb.buf, fb.width, blit_height, fb.xstart, fb.ystart+fb.dy_min, 0, fb.dy_min);
fb.cfb->blit2FB(blit_start, fb.width, blit_height, fb.xstart, fb.ystart+fb.dy_min, 0, 0);
} }
#else #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, 0, 0);