Mailing List archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[vdr] AddColor() / SetColor()



in the games plugin i set the palette, before i draw anything the first
time:

   for (int i=0; i<COLORS; i++) {
#if VDRVERSNUM < 10307
      if (screen) screen->AddColor(PALETTE(i));
#else
      if (screen) {
         screen->GetBitmap(0)->SetColor(i, PALETTE(i));
      }
#endif
   }

is this useful in any way, except that i know which color is on a
specific index? if cOsd would provide a SetIndex() methode it would
speed up setting a pixel a little bit. or should i dump that code
anyway?

thx & best regards ...
clemens


-- 
Info:
To unsubscribe send a mail to ecartis@linuxtv.org with "unsubscribe vdr" as subject.



Home | Main Index | Thread Index