framebuffer: fix unscaled paintings; this fixes our starbar

Origin commit data
------------------
Branch: ni/coolstream
Commit: f6f1a71b39
Author: vanhofen <vanhofen@gmx.de>
Date: 2017-03-28 (Tue, 28 Mar 2017)

Origin message was:
------------------
- framebuffer: fix unscaled paintings; this fixes our starbar

------------------
No further description and justification available within origin commit message!

------------------
This commit was generated by Migit
This commit is contained in:
vanhofen
2017-03-28 12:36:26 +02:00
parent 4c98def5df
commit 3fb3817563
3 changed files with 14 additions and 5 deletions

View File

@@ -306,6 +306,12 @@ void CFbAccelCSHD1::blitBox2FB(const fb_pixel_t* boxBuf, uint32_t width, uint32_
uint32_t xc = (width > xRes) ? (uint32_t)xRes : width;
uint32_t yc = (height > yRes) ? (uint32_t)yRes : height;
//NI
if (unscaled_w != 0 && (int)unscaled_w < xc)
xc = unscaled_w;
if (unscaled_h != 0 && (int)unscaled_h < yc)
yc = unscaled_h;
void* uKva = cs_phys_addr((void*)boxBuf);
if(uKva != NULL) {
OpenThreads::ScopedLock<OpenThreads::Mutex> m_lock(mutex);