mirror of
https://github.com/tuxbox-fork-migrations/recycled-ni-neutrino.git
synced 2025-08-30 17:01:08 +02:00
fb_generic: remove unused virtual_fb variable
Origin commit data
------------------
Commit: 264124e7c4
Author: Stefan Seyfried <seife@tuxbox-git.slipkontur.de>
Date: 2018-02-25 (Sun, 25 Feb 2018)
This commit is contained in:
committed by
vanhofen
parent
95d0cbe737
commit
b065c816ac
@@ -68,7 +68,6 @@ void CFrameBuffer::waitForIdle(const char *)
|
|||||||
|
|
||||||
/*******************************************************************************/
|
/*******************************************************************************/
|
||||||
|
|
||||||
static uint8_t * virtual_fb = NULL;
|
|
||||||
inline unsigned int make16color(uint16_t r, uint16_t g, uint16_t b, uint16_t t,
|
inline unsigned int make16color(uint16_t r, uint16_t g, uint16_t b, uint16_t t,
|
||||||
uint32_t /*rl*/ = 0, uint32_t /*ro*/ = 0,
|
uint32_t /*rl*/ = 0, uint32_t /*ro*/ = 0,
|
||||||
uint32_t /*gl*/ = 0, uint32_t /*go*/ = 0,
|
uint32_t /*gl*/ = 0, uint32_t /*go*/ = 0,
|
||||||
@@ -235,10 +234,6 @@ CFrameBuffer::~CFrameBuffer()
|
|||||||
munmap(lfb, available);
|
munmap(lfb, available);
|
||||||
lfb = NULL;
|
lfb = NULL;
|
||||||
|
|
||||||
if (virtual_fb){
|
|
||||||
delete[] virtual_fb;
|
|
||||||
virtual_fb = NULL;
|
|
||||||
}
|
|
||||||
close(fd);
|
close(fd);
|
||||||
fd = -1;
|
fd = -1;
|
||||||
|
|
||||||
@@ -296,10 +291,7 @@ unsigned int CFrameBuffer::getScreenY()
|
|||||||
|
|
||||||
fb_pixel_t * CFrameBuffer::getFrameBufferPointer() const
|
fb_pixel_t * CFrameBuffer::getFrameBufferPointer() const
|
||||||
{
|
{
|
||||||
if (active || (virtual_fb == NULL))
|
return lbb;
|
||||||
return lbb;
|
|
||||||
else
|
|
||||||
return (fb_pixel_t *) virtual_fb;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
/* dummy if not implemented in CFbAccel */
|
/* dummy if not implemented in CFbAccel */
|
||||||
@@ -310,7 +302,7 @@ fb_pixel_t * CFrameBuffer::getBackBufferPointer() const
|
|||||||
|
|
||||||
bool CFrameBuffer::getActive() const
|
bool CFrameBuffer::getActive() const
|
||||||
{
|
{
|
||||||
return (active || (virtual_fb != NULL));
|
return active;
|
||||||
}
|
}
|
||||||
|
|
||||||
void CFrameBuffer::setActive(bool enable)
|
void CFrameBuffer::setActive(bool enable)
|
||||||
|
Reference in New Issue
Block a user