src/video/SDL_surface.c
changeset 9267 6fe4583d7e1f
parent 9080 2e4e71ec140f
equal deleted inserted replaced
9266:f6355bfca853 9267:6fe4583d7e1f
   739     dst_x0 += dst->clip_rect.x;
   739     dst_x0 += dst->clip_rect.x;
   740     dst_x1 += dst->clip_rect.x;
   740     dst_x1 += dst->clip_rect.x;
   741     dst_y0 += dst->clip_rect.y;
   741     dst_y0 += dst->clip_rect.y;
   742     dst_y1 += dst->clip_rect.y;
   742     dst_y1 += dst->clip_rect.y;
   743 
   743 
   744     final_src.x = SDL_floor(src_x0 + 0.5);
   744     final_src.x = (int)SDL_floor(src_x0 + 0.5);
   745     final_src.y = SDL_floor(src_y0 + 0.5);
   745     final_src.y = (int)SDL_floor(src_y0 + 0.5);
   746     final_src.w = SDL_floor(src_x1 - src_x0 + 1.5);
   746     final_src.w = (int)SDL_floor(src_x1 - src_x0 + 1.5);
   747     final_src.h = SDL_floor(src_y1 - src_y0 + 1.5);
   747     final_src.h = (int)SDL_floor(src_y1 - src_y0 + 1.5);
   748 
   748 
   749     final_dst.x = SDL_floor(dst_x0 + 0.5);
   749     final_dst.x = (int)SDL_floor(dst_x0 + 0.5);
   750     final_dst.y = SDL_floor(dst_y0 + 0.5);
   750     final_dst.y = (int)SDL_floor(dst_y0 + 0.5);
   751     final_dst.w = SDL_floor(dst_x1 - dst_x0 + 1.5);
   751     final_dst.w = (int)SDL_floor(dst_x1 - dst_x0 + 1.5);
   752     final_dst.h = SDL_floor(dst_y1 - dst_y0 + 1.5);
   752     final_dst.h = (int)SDL_floor(dst_y1 - dst_y0 + 1.5);
   753 
   753 
   754     if (final_dst.w < 0)
   754     if (final_dst.w < 0)
   755         final_dst.w = 0;
   755         final_dst.w = 0;
   756     if (final_dst.h < 0)
   756     if (final_dst.h < 0)
   757         final_dst.h = 0;
   757         final_dst.h = 0;