fb_generic: nicer debug output, remove dead code

This commit is contained in:
Stefan Seyfried
2017-02-05 20:45:13 +01:00
parent 257ffd9ee3
commit 2d57ea34f4

View File

@@ -121,8 +121,6 @@ CFrameBuffer* CFrameBuffer::getInstance()
if(!frameBuffer) { if(!frameBuffer) {
frameBuffer = new CFrameBuffer(); frameBuffer = new CFrameBuffer();
printf("[neutrino] %s Instance created\n", frameBuffer->fb_name); printf("[neutrino] %s Instance created\n", frameBuffer->fb_name);
} else {
//printf("[neutrino] frameBuffer Instace requested\n");
} }
return frameBuffer; return frameBuffer;
} }
@@ -132,7 +130,6 @@ void CFrameBuffer::init(const char * const fbDevice)
int tr = 0xFF; int tr = 0xFF;
fd = open(fbDevice, O_RDWR); fd = open(fbDevice, O_RDWR);
if(!fd) fd = open(fbDevice, O_RDWR);
if (fd<0) { if (fd<0) {
perror(fbDevice); perror(fbDevice);
@@ -152,7 +149,7 @@ void CFrameBuffer::init(const char * const fbDevice)
} }
available=fix.smem_len; available=fix.smem_len;
printf("%dk video mem\n", available/1024); printf("[fb_generic] %dk video mem\n", available/1024);
lbb = lfb = (fb_pixel_t*)mmap(0, available, PROT_WRITE|PROT_READ, MAP_SHARED, fd, 0); lbb = lfb = (fb_pixel_t*)mmap(0, available, PROT_WRITE|PROT_READ, MAP_SHARED, fd, 0);
if (!lfb) { if (!lfb) {
@@ -1169,8 +1166,6 @@ void CFrameBuffer::paintLine(int xa, int ya, int xb, int yb, const fb_pixel_t co
if (!getActive()) if (!getActive())
return; return;
//printf("%s(%d, %d, %d, %d, %.8X)\n", __FUNCTION__, xa, ya, xb, yb, col);
int dx = abs (xa - xb); int dx = abs (xa - xb);
int dy = abs (ya - yb); int dy = abs (ya - yb);
int x; int x;