Software Backend: Rename 'copy_region' to 'CopyRegion'

This commit is contained in:
iwubcode
2017-10-02 00:33:47 -05:00
parent 0f7f4ccaf9
commit 1a1c3560ce
3 changed files with 7 additions and 7 deletions

View File

@ -9,8 +9,8 @@ namespace SW
// Modified from
// http://tech-algorithm.com/articles/nearest-neighbor-image-scaling/
template <typename T>
void copy_region(const T* const source, const MathUtil::Rectangle<int>& srcrect, T* destination,
const MathUtil::Rectangle<int>& dstrect)
void CopyRegion(const T* const source, const MathUtil::Rectangle<int>& srcrect, T* destination,
const MathUtil::Rectangle<int>& dstrect)
{
double x_ratio = srcrect.GetWidth() / static_cast<double>(dstrect.GetWidth());
double y_ratio = srcrect.GetHeight() / static_cast<double>(dstrect.GetHeight());