Function scaled

Returns a surface that fits the given rectangle Fits the original surface within the returned surface to be as large as it can while maintaining aspect ratio Also centers the original surface within the returned surface

Surface scaled (
  Surface original,
  int desiredW,
  int desiredH
);