mirror of
https://github.com/tuxbox-fork-migrations/recycled-ni-neutrino.git
synced 2025-09-02 18:31:12 +02:00
remove hardware specific code from gui
Use the framebuffer's getWidth4FB_HW_ACC() instead of system/helpers.
The use in cc_item_picture was guarded by a hardware #ifdef, use
needAlign4Blit() instead.
This needs testing on the affected hardware, which I do not have :-)
Origin commit data
------------------
Branch: ni/coolstream
Commit: a5333b4ec1
Author: Stefan Seyfried <seife@tuxbox-git.slipkontur.de>
Date: 2017-02-14 (Tue, 14 Feb 2017)
------------------
This commit was generated by Migit
This commit is contained in:
@@ -2481,7 +2481,7 @@ void CMoviePlayerGui::showSubtitle(neutrino_msg_data_t data)
|
||||
|
||||
int xoff = (double) sub->rects[i]->x * xc;
|
||||
int yoff = (double) sub->rects[i]->y * yc;
|
||||
int nw = GetWidth4FB_HW_ACC(xoff, (double) sub->rects[i]->w * xc);
|
||||
int nw = frameBuffer->getWidth4FB_HW_ACC(xoff, (double) sub->rects[i]->w * xc);
|
||||
int nh = (double) sub->rects[i]->h * yc;
|
||||
|
||||
printf("Draw: #%d at %d,%d size %dx%d colors %d (x=%d y=%d w=%d h=%d) \n", i+1,
|
||||
|
Reference in New Issue
Block a user