lowerBlitScaled method

int lowerBlitScaled(
  1. Pointer<SdlSurface> dst, {
  2. Rectangle<double>? srcrect,
  3. Rectangle<double>? dstrect,
})

Implementation

int lowerBlitScaled(
  Pointer<SdlSurface> dst, {
  math.Rectangle<double>? srcrect,
  math.Rectangle<double>? dstrect,
}) {
  Pointer<SdlRect> srcrectPointer = nullptr;
  Pointer<SdlRect> dstrectPointer = nullptr;
  if (srcrect != null) {
    srcrectPointer = srcrect.calloc();
  }
  if (dstrect != null) {
    dstrectPointer = dstrect.calloc();
  }
  // 1137
  var result = sdlLowerBlitScaled(this, srcrectPointer, dst, dstrectPointer);
  calloc.free(srcrectPointer);
  calloc.free(dstrectPointer);
  return result;
}