diff -Nru ditherndemo-0.0.1/ditherndemo.c ditherndemo-0.0.1_FF/ditherndemo.c --- ditherndemo-0.0.1/ditherndemo.c Wed Jan 4 16:28:38 2006 +++ ditherndemo-0.0.1_FF/ditherndemo.c Wed Jan 4 21:05:32 2006 @@ -4,7 +4,7 @@ static const char *DESCRIPTION = "Only a Demo how dithernColors could look like"; static const char *MAINMENUENTRY = "Ditherndemo"; -static const int OSDWidth = 250; +static const int OSDWidth = 250 & ~0x07; static const int OSDHigh = 150; static const int COLORS = 4; @@ -115,7 +115,7 @@ if (((x % 2) && (y % 2)) || (!(x % 2) && !(y % 2))) osd->DrawPixel(x, y, Color); else - osd->DrawPixel(x, y, Color); + osd->DrawPixel(x, y, Color2); } } } @@ -123,11 +123,12 @@ void cDithernOsd::PaintColors() { + if (osd) delete osd; osd = cOsdProvider::NewOsd(100, 100); if (osd) { - tArea Area = { 0, 0, OSDWidth, OSDHigh, 2 }; + tArea Area = { 0, 0, OSDWidth - 1, OSDHigh - 1, 2 }; osd->SetAreas(&Area, 1); }