mirror of
https://github.com/tuxbox-fork-migrations/recycled-ni-neutrino.git
synced 2025-08-30 17:01:08 +02:00
tuxtxt: Fix display in 1280x720 mode
Origin commit data
------------------
Commit: 979bac14f0
Author: Michael Liebmann <tuxcode.bbg@gmail.com>
Date: 2017-02-15 (Wed, 15 Feb 2017)
This commit is contained in:
@@ -5621,7 +5621,17 @@ void CopyBB2FB()
|
||||
#ifdef HAVE_SPARK_HARDWARE
|
||||
f->blit2FB(lbb, var_screeninfo.xres, var_screeninfo.yres, 0, 0, 0, 0, true);
|
||||
#else
|
||||
memcpy(lfb, lbb, fix_screeninfo.line_length*var_screeninfo.yres);
|
||||
if ((uint32_t)stride > var_screeninfo.xres) {
|
||||
fb_pixel_t *lfb_ = lfb;
|
||||
fb_pixel_t *lbb_ = lbb;
|
||||
for (uint32_t i1 = 0; i1 < var_screeninfo.yres; i1++) {
|
||||
memcpy(lfb_, lbb_, var_screeninfo.xres * sizeof(fb_pixel_t));
|
||||
lfb_ += stride;
|
||||
lbb_ += stride;
|
||||
}
|
||||
}
|
||||
else
|
||||
memcpy(lfb, lbb, fix_screeninfo.line_length*var_screeninfo.yres);
|
||||
#endif
|
||||
#endif
|
||||
|
||||
|
Reference in New Issue
Block a user