Home | History | Annotate | Download | only in client

Lines Matching defs:pic

66 	cachepic_t	*pic;
70 for (pic=menu_cachepics, i=0 ; i<menu_numcachepics ; pic++, i++)
71 if (!strcmp (path, pic->name))
79 strcpy (pic->name, path);
82 dat = Cache_Check (&pic->cache);
88 // load the pic from disk
90 COM_LoadCacheFile (path, &pic->cache);
92 dat = (qpic_t *)pic->cache.data;
344 void Draw_Pic (int x, int y, qpic_t *pic)
351 (x + pic->width > vid.width) ||
353 (y + pic->height > vid.height))
358 source = pic->data;
364 for (v=0 ; v<pic->height ; v++)
366 Q_memcpy (dest, source, pic->width);
368 source += pic->width;
376 for (v=0 ; v<pic->height ; v++)
378 for (u=0 ; u<pic->width ; u++)
384 source += pic->width;
395 void Draw_SubPic(int x, int y, qpic_t *pic, int srcx, int srcy, int width, int height)
409 source = pic->data + srcy * pic->width + srcx;
419 source += pic->width;
435 source += pic->width;
446 void Draw_TransPic (int x, int y, qpic_t *pic)
452 if (x < 0 || (unsigned)(x + pic->width) > vid.width || y < 0 ||
453 (unsigned)(y + pic->height) > vid.height)
458 source = pic->data;
464 if (pic->width & 7)
466 for (v=0 ; v<pic->height ; v++)
468 for (u=0 ; u<pic->width ; u++)
473 source += pic->width;
478 for (v=0 ; v<pic->height ; v++)
480 for (u=0 ; u<pic->width ; u+=8)
500 source += pic->width;
509 for (v=0 ; v<pic->height ; v++)
511 for (u=0 ; u<pic->width ; u++)
522 source += pic->width;
533 void Draw_TransPicTranslate (int x, int y, qpic_t *pic, byte *translation)
539 if (x < 0 || (unsigned)(x + pic->width) > vid.width || y < 0 ||
540 (unsigned)(y + pic->height) > vid.height)
545 source = pic->data;
551 if (pic->width & 7)
553 for (v=0 ; v<pic->height ; v++)
555 for (u=0 ; u<pic->width ; u++)
560 source += pic->width;
565 for (v=0 ; v<pic->height ; v++)
567 for (u=0 ; u<pic->width ; u+=8)
587 source += pic->width;
596 for (v=0 ; v<pic->height ; v++)
598 for (u=0 ; u<pic->width ; u++)
609 source += pic->width;
657 // hack the version number directly into the pic
677 // draw the pic