Logo Search packages:      
Sourcecode: vdr-plugin-spider version File versions

void SpiderGame::paintCursor ( int  x,
int  y 
) [private]

Paint the cursor onto a card

Definition at line 365 of file game.c.

Referenced by paintPack(), and paintPile().

{
  int x0 = x + (cardWidth - cursorWidth) / 2;
  int y0 = y + (cardHeight - cursorHeight) / 2;
  tColor color = clrBlue;
  if (status == selectedPile)
    color = clrYellow;
  for (x = 0; x < cursorWidth; ++x)
    for (y = 0; y < cursorHeight; ++y)
      if (cursor->Color(*cursor->Data(x, y)) != clrTransparent)
        osd->DrawRectangle(x0 + x, y0 + y, x0 + x, y0 + y, color);
}


Generated by  Doxygen 1.6.0   Back to index