Logo Search packages:      
Sourcecode: scummvm version File versions  Download package

void OSystem_Dreamcast::setCursorPalette ( const byte *  colors,
uint  start,
uint  num 
) [virtual]

Replace the specified range of cursor the palette with new colors. The palette entries from 'start' till (start+num-1) will be replaced - so a full palette update is accomplished via start=0, num=256.

Backends which implement it should have kFeatureCursorHasPalette flag set

See also:
setPalette
kFeatureCursorHasPalette

Reimplemented from OSystem.

Definition at line 164 of file display.cpp.

{
  unsigned short *dst = cursor_palette + start;
  if (num>0)
    while ( num-- ) {
      *dst++ = ((colors[0]<<7)&0x7c00)|
      ((colors[1]<<2)&0x03e0)|
      ((colors[2]>>3)&0x001f);
      colors += 3;
    }
  _enable_cursor_palette = true;
}

Generated by  Doxygen 1.6.0   Back to index