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 :-)
This commit is contained in:
Stefan Seyfried
2017-02-14 00:14:30 +01:00
committed by M. Liebmann
parent b6909fb815
commit c9e1072b94
2 changed files with 4 additions and 6 deletions

View File

@@ -2448,7 +2448,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,