mirror of
https://github.com/tuxbox-neutrino/neutrino.git
synced 2025-09-01 18:01:13 +02:00
fbaccel: make blit() private, remove calls from fb_ng
The explicit blit() calls should not be needed, let the autoblit thread handle it instead.
This commit is contained in:
@@ -56,6 +56,7 @@ class CFbAccel
|
|||||||
#endif /* USE_NEVIS_GXA */
|
#endif /* USE_NEVIS_GXA */
|
||||||
void setColor(fb_pixel_t col);
|
void setColor(fb_pixel_t col);
|
||||||
void run(void);
|
void run(void);
|
||||||
|
void blit(void);
|
||||||
void _blit(void);
|
void _blit(void);
|
||||||
bool blit_thread;
|
bool blit_thread;
|
||||||
bool blit_pending;
|
bool blit_pending;
|
||||||
@@ -84,7 +85,6 @@ class CFbAccel
|
|||||||
void blit2FB(void *fbbuff, uint32_t width, uint32_t height, uint32_t xoff, uint32_t yoff, uint32_t xp, uint32_t yp, bool transp);
|
void blit2FB(void *fbbuff, uint32_t width, uint32_t height, uint32_t xoff, uint32_t yoff, uint32_t xp, uint32_t yp, bool transp);
|
||||||
void waitForIdle(void);
|
void waitForIdle(void);
|
||||||
void mark(int x, int y, int dx, int dy);
|
void mark(int x, int y, int dx, int dy);
|
||||||
void blit();
|
|
||||||
void update();
|
void update();
|
||||||
#ifdef USE_NEVIS_GXA
|
#ifdef USE_NEVIS_GXA
|
||||||
void setupGXA(void);
|
void setupGXA(void);
|
||||||
|
@@ -785,7 +785,6 @@ bool CFrameBuffer::paintIcon8(const std::string & filename, const int x, const i
|
|||||||
}
|
}
|
||||||
close(lfd);
|
close(lfd);
|
||||||
accel->mark(x, y, x + width, y + height);
|
accel->mark(x, y, x + width, y + height);
|
||||||
accel->blit();
|
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -1092,7 +1091,6 @@ void CFrameBuffer::paintBackground()
|
|||||||
memmove(((uint8_t *)getFrameBufferPointer()) + i * stride, (background + i * BACKGROUNDIMAGEWIDTH), BACKGROUNDIMAGEWIDTH * sizeof(fb_pixel_t));
|
memmove(((uint8_t *)getFrameBufferPointer()) + i * stride, (background + i * BACKGROUNDIMAGEWIDTH), BACKGROUNDIMAGEWIDTH * sizeof(fb_pixel_t));
|
||||||
checkFbArea(0, 0, xRes, yRes, false);
|
checkFbArea(0, 0, xRes, yRes, false);
|
||||||
accel->mark(0, 0, xRes, yRes);
|
accel->mark(0, 0, xRes, yRes);
|
||||||
accel->blit();
|
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
@@ -1143,7 +1141,6 @@ void CFrameBuffer::RestoreScreen(int x, int y, int dx, int dy, fb_pixel_t * cons
|
|||||||
bkpos += dx;
|
bkpos += dx;
|
||||||
}
|
}
|
||||||
accel->mark(x, y, x + dx, y + dy);
|
accel->mark(x, y, x + dx, y + dy);
|
||||||
accel->blit();
|
|
||||||
checkFbArea(x, y, dx, dy, false);
|
checkFbArea(x, y, dx, dy, false);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user