src/render/SDL_render.c
changeset 7073 873715d91f83
parent 7037 3fedf1f25b94
child 7109 003d40e446f5
child 8464 a2a909304cfe
equal deleted inserted replaced
7072:1d9b4b7a8ce3 7073:873715d91f83
  1295             frect->y = points[i].y * renderer->scale.y;
  1295             frect->y = points[i].y * renderer->scale.y;
  1296             frect->w = (maxX - minX + 1) * renderer->scale.x;
  1296             frect->w = (maxX - minX + 1) * renderer->scale.x;
  1297             frect->h = renderer->scale.y;
  1297             frect->h = renderer->scale.y;
  1298         } else {
  1298         } else {
  1299             /* FIXME: We can't use a rect for this line... */
  1299             /* FIXME: We can't use a rect for this line... */
  1300             frects[0].x = points[i].x * renderer->scale.x;
  1300             fpoints[0].x = points[i].x * renderer->scale.x;
  1301             frects[0].y = points[i].y * renderer->scale.y;
  1301             fpoints[0].y = points[i].y * renderer->scale.y;
  1302             frects[1].x = points[i+1].x * renderer->scale.x;
  1302             fpoints[1].x = points[i+1].x * renderer->scale.x;
  1303             frects[1].y = points[i+1].y * renderer->scale.y;
  1303             fpoints[1].y = points[i+1].y * renderer->scale.y;
  1304             status += renderer->RenderDrawLines(renderer, fpoints, 2);
  1304             status += renderer->RenderDrawLines(renderer, fpoints, 2);
  1305         }
  1305         }
  1306     }
  1306     }
  1307 
  1307 
  1308     status += renderer->RenderFillRects(renderer, frects, nrects);
  1308     status += renderer->RenderFillRects(renderer, frects, nrects);