Home | History | Annotate | Download | only in video

Lines Matching full:dstrect

408 				SDL_Surface *dst, SDL_Rect *dstrect)
431 hw_dstrect = *dstrect;
434 dstrect = &hw_dstrect;
440 return(do_blit(src, srcrect, dst, dstrect));
445 SDL_Surface *dst, SDL_Rect *dstrect)
461 if ( dstrect == NULL ) {
463 dstrect = &fulldst;
474 dstrect->x -= srcx;
485 dstrect->y -= srcy;
503 dx = clip->x - dstrect->x;
506 dstrect->x += dx;
509 dx = dstrect->x + w - clip->x - clip->w;
513 dy = clip->y - dstrect->y;
516 dstrect->y += dy;
519 dy = dstrect->y + h - clip->y - clip->h;
528 sr.w = dstrect->w = w;
529 sr.h = dstrect->h = h;
530 return SDL_LowerBlit(src, &sr, dst, dstrect);
532 dstrect->w = dstrect->h = 0;
536 static int SDL_FillRect1(SDL_Surface *dst, SDL_Rect *dstrect, Uint32 color)
543 static int SDL_FillRect4(SDL_Surface *dst, SDL_Rect *dstrect, Uint32 color)
553 int SDL_FillRect(SDL_Surface *dst, SDL_Rect *dstrect, Uint32 color)
564 return SDL_FillRect1(dst, dstrect, color);
567 return SDL_FillRect4(dst, dstrect, color);
576 /* If 'dstrect' == NULL, then fill the whole surface */
577 if ( dstrect ) {
579 if ( !SDL_IntersectRect(dstrect, &dst->clip_rect, dstrect) ) {
583 dstrect = &dst->clip_rect;
591 hw_rect = *dstrect;
594 dstrect = &hw_rect;
596 return(video->FillHWRect(this, dst, dstrect, color));
603 row = (Uint8 *)dst->pixels+dstrect->y*dst->pitch+
604 dstrect->x*dst->format->BytesPerPixel;
606 x = dstrect->w*dst->format->BytesPerPixel;
609 for ( y=dstrect->h; y; --y ) {
622 if(dstrect->w >= 8) {
629 for(y = dstrect->h; y; y--) {
665 for(y = dstrect->h; y; y--) {
679 for(y = dstrect->h; y; y--) {
688 for ( y=dstrect->h; y; --y ) {
692 int n = dstrect->w;
709 for ( y=dstrect->h; y; --y ) {
711 for ( x=dstrect->w; x; --x ) {
720 for(y = dstrect->h; y; --y) {
721 SDL_memset4(row, color, dstrect->w);