mirror of
https://github.com/tuxbox-fork-migrations/recycled-ni-neutrino.git
synced 2025-09-02 02:11:04 +02:00
CComponentsPicture: Align pictures at 4 byte boundary...
...for hw blit on apollo/kronos hardware
Origin commit data
------------------
Branch: ni/coolstream
Commit: 346b28556f
Author: Michael Liebmann <tuxcode.bbg@gmail.com>
Date: 2016-01-26 (Tue, 26 Jan 2016)
------------------
This commit was generated by Migit
This commit is contained in:
@@ -33,6 +33,7 @@
|
||||
#include "cc_item_picture.h"
|
||||
#include <unistd.h>
|
||||
#include <system/debug.h>
|
||||
#include <system/helpers.h>
|
||||
|
||||
extern CPictureViewer * g_PicViewer;
|
||||
|
||||
@@ -196,6 +197,10 @@ void CComponentsPicture::initCCItem()
|
||||
if (keep_dx_aspect){
|
||||
float h_ratio = float(height)*100/(float)dy;
|
||||
width = int(h_ratio*(float)dx/100);
|
||||
#ifdef BOXMODEL_APOLLO
|
||||
if (do_scale && (width > 10 || height > 10))
|
||||
width = GetWidth4FB_HW_ACC(x+fr_thickness, width-2*fr_thickness)+2*fr_thickness;
|
||||
#endif
|
||||
}
|
||||
if (keep_dy_aspect){
|
||||
float w_ratio = float(width)*100/(float)dx;
|
||||
|
Reference in New Issue
Block a user