Lines Matching refs:w
528 StarWindow *w; in StarAnimation() local
532 w = (StarWindow*)data; in StarAnimation()
535 while (!w->kill_my_thread) { in StarAnimation()
540 while (acquire_sem(w->drawing_lock) == B_INTERRUPTED) in StarAnimation()
542 if (w->kill_my_thread) in StarAnimation()
546 s = w->star_list; in StarAnimation()
547 for (i=0; i<w->star_count; i++) { in StarAnimation()
551 x = s->x = ((w->crc_alea&0x1f00)>>8) - 16; in StarAnimation()
552 y = s->y = ((w->crc_alea&0x1f0000)>>16) - 16; in StarAnimation()
556 s->count = s->count0 + (w->crc_alea&0x7); in StarAnimation()
557 w->CrcStep(); in StarAnimation()
569 if (w->pixel_depth == 32) in StarAnimation()
570 w->draw_ptr32[s->last_draw] = 0; in StarAnimation()
571 else if (w->pixel_depth == 16) in StarAnimation()
572 w->draw_ptr16[s->last_draw] = 0; in StarAnimation()
574 w->draw_ptr8[s->last_draw] = 0; in StarAnimation()
579 if ((x < w->clipping_bound.left) || (x > w->clipping_bound.right) || in StarAnimation()
580 (y < w->clipping_bound.top) || (y > w->clipping_bound.bottom)) in StarAnimation()
582 if (w->clipping_list_count == 1) { in StarAnimation()
585 s->last_draw = w->window_offset + w->row_bytes*y + x; in StarAnimation()
586 if (w->pixel_depth == 32) in StarAnimation()
587 w->draw_ptr32[s->last_draw] = w->pixel32; in StarAnimation()
588 else if (w->pixel_depth == 16) in StarAnimation()
589 w->draw_ptr16[s->last_draw] = w->pixel16; in StarAnimation()
591 w->draw_ptr8[s->last_draw] = w->pixel8; in StarAnimation()
595 r = w->clipping_list; in StarAnimation()
596 for (j=0; j<w->clipping_list_count; j++) { in StarAnimation()
610 release_sem(w->drawing_lock); in StarAnimation()