Beispiel #1
0
static int draw(effect* e, RGB32 *src, RGB32 *dst)
  {
  int i;
  cycle_t * priv = e->priv;
  
  priv->roff += 1;
  priv->goff += 3;        
  
  priv->boff += 7;
  for (i=0 ; i < e->video_area ; i++) {
    RGB32 t;
    t = *src++;
    *dst++ = RGB(NEWCOLOR(RED(t),priv->roff),
	       NEWCOLOR(GREEN(t),priv->goff),
	       NEWCOLOR(BLUE(t),priv->boff));
  }

  return 0;
}
Beispiel #2
0
static int draw(RGB32 *src, RGB32 *dst)
{
  int i;
  
  roff += 1;
  goff += 3;        
  if (stretch)
    image_stretch_to_screen();
  
  boff += 7;
  for (i=0 ; i < video_area ; i++) {
    RGB32 t;
    t = *src++;
    *dst++ = RGB(NEWCOLOR(RED(t),roff),
	       NEWCOLOR(GREEN(t),goff),
	       NEWCOLOR(BLUE(t),boff));
  }

  return 0;
}