mirror of
https://github.com/tuxbox-neutrino/neutrino.git
synced 2025-08-30 00:41:17 +02:00
src/driver/fb_generic.h: use unified define for fb device name
This commit is contained in:
@@ -77,10 +77,10 @@ static int exec_list(void)
|
|||||||
CFbAccelARM::CFbAccelARM()
|
CFbAccelARM::CFbAccelARM()
|
||||||
{
|
{
|
||||||
fb_name = "armbox framebuffer";
|
fb_name = "armbox framebuffer";
|
||||||
fb_fd = open("/dev/fb0", O_RDWR);
|
fb_fd = open(FB_DEVICE, O_RDWR);
|
||||||
if (fb_fd < 0)
|
if (fb_fd < 0)
|
||||||
{
|
{
|
||||||
printf(LOGTAG "[bcm] /dev/fb0 %m");
|
printf(LOGTAG "[bcm] %s %m", FB_DEVICE);
|
||||||
}
|
}
|
||||||
if (exec_list())
|
if (exec_list())
|
||||||
{
|
{
|
||||||
|
@@ -76,6 +76,8 @@ typedef struct gradientData_t
|
|||||||
#define WINDOW_SIZE_MIN 50 // %
|
#define WINDOW_SIZE_MIN 50 // %
|
||||||
#define WINDOW_SIZE_SMALL 80 // %
|
#define WINDOW_SIZE_SMALL 80 // %
|
||||||
|
|
||||||
|
#define FB_DEVICE "/dev/fb0"
|
||||||
|
|
||||||
/** Ausfuehrung als Singleton */
|
/** Ausfuehrung als Singleton */
|
||||||
class CFrameBuffer : public sigc::trackable
|
class CFrameBuffer : public sigc::trackable
|
||||||
{
|
{
|
||||||
@@ -172,7 +174,7 @@ class CFrameBuffer : public sigc::trackable
|
|||||||
|
|
||||||
static CFrameBuffer* getInstance();
|
static CFrameBuffer* getInstance();
|
||||||
|
|
||||||
virtual void init(const char * const fbDevice = "/dev/fb0");
|
virtual void init(const char * const fbDevice = FB_DEVICE);
|
||||||
virtual int setMode(unsigned int xRes, unsigned int yRes, unsigned int bpp);
|
virtual int setMode(unsigned int xRes, unsigned int yRes, unsigned int bpp);
|
||||||
|
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user