mirror of
https://github.com/tuxbox-fork-migrations/recycled-ni-neutrino.git
synced 2025-08-29 16:31:05 +02:00
NI \o/
Origin commit data
------------------
Commit: d6b3754c6f
Author: vanhofen <vanhofen@gmx.de>
Date: 2016-05-19 (Thu, 19 May 2016)
This commit is contained in:
@@ -636,6 +636,30 @@ bool CPictureViewer::DisplayImage(const std::string & name, int posx, int posy,
|
||||
return false;
|
||||
}
|
||||
|
||||
//NI
|
||||
bool CPictureViewer::DisplayImage_unscaled(const std::string & name, int posx, int posy, int width, int height, int transp)
|
||||
{
|
||||
int fb_w = width;
|
||||
int fb_h = height;
|
||||
|
||||
CFrameBuffer* frameBuffer = CFrameBuffer::getInstance();
|
||||
if (transp > CFrameBuffer::TM_EMPTY)
|
||||
frameBuffer->SetTransparent(transp);
|
||||
|
||||
/* TODO: cache or check for same */
|
||||
fb_pixel_t * data = getIcon(name, &width, &height);
|
||||
|
||||
if (transp > CFrameBuffer::TM_EMPTY)
|
||||
frameBuffer->SetTransparentDefault();
|
||||
|
||||
if(data) {
|
||||
frameBuffer->blit2FB_unscaled(data, width, height, posx, posy, fb_w, fb_h);
|
||||
cs_free_uncached(data);
|
||||
return true;
|
||||
}
|
||||
return false;
|
||||
}
|
||||
|
||||
fb_pixel_t * CPictureViewer::int_getImage(const std::string & name, int *width, int *height, bool GetImage)
|
||||
{
|
||||
if (access(name.c_str(), R_OK) == -1)
|
||||
|
Reference in New Issue
Block a user