Mailing List archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[vdr] Idea - drawing speed-up
Hi,
I wonder if adding a
#define IS_VISIBLE(COL) (COL & 0xFF000000 > 0)
check would speed up drawing operations (osd.c).
For example:
void cBitmap::DrawRectangle(int x1, int y1, int x2, int y2, tColor
Color)
{
if (bitmap && Intersects(x1, y1, x2, y2)) {
would become:
void cBitmap::DrawRectangle(int x1, int y1, int x2, int y2, tColor
Color)
{
if (bitmap && IS_VISIBLE(Color) && Intersects(x1, y1, x2, y2)) {
regards
patrick (nick: ravemax)
Home |
Main Index |
Thread Index