src/render/SDL_render.c
changeset 6399 3fb0c82693af
parent 6389 43a190ad60a7
child 6414 df50b0d6c1c3
equal deleted inserted replaced
6398:c294faf5fce5 6399:3fb0c82693af
  1258     }
  1258     }
  1259 
  1259 
  1260     /* We don't intersect the dstrect with the viewport as RenderCopy does because of potential rotation clipping issues... TODO: should we? */
  1260     /* We don't intersect the dstrect with the viewport as RenderCopy does because of potential rotation clipping issues... TODO: should we? */
  1261     if (dstrect) real_dstrect = *dstrect;
  1261     if (dstrect) real_dstrect = *dstrect;
  1262     else {
  1262     else {
  1263         real_srcrect.x = 0;
  1263         real_dstrect.x = 0;
  1264         real_srcrect.y = 0;
  1264         real_dstrect.y = 0;
  1265         real_srcrect.w = renderer->viewport.w;
  1265         real_dstrect.w = renderer->viewport.w;
  1266         real_srcrect.h = renderer->viewport.h;
  1266         real_dstrect.h = renderer->viewport.h;
  1267     }
  1267     }
  1268 
  1268 
  1269     if (texture->native) {
  1269     if (texture->native) {
  1270         texture = texture->native;
  1270         texture = texture->native;
  1271     }
  1271     }