mirror of
https://github.com/tuxbox-fork-migrations/recycled-ni-neutrino.git
synced 2025-08-29 16:31:05 +02:00
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: c8f6ff9a18
Author: Stefan Seyfried <seife@tuxbox-git.slipkontur.de>
Date: 2018-02-20 (Tue, 20 Feb 2018)
------------------
This commit was generated by Migit
This commit is contained in:
committed by
vanhofen
parent
221928c3e9
commit
8f37690a89
@@ -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;
|
||||
|
Reference in New Issue
Block a user