mirror of
https://github.com/godotengine/godot.git
synced 2026-01-03 18:11:19 +03:00
Fixed a bunch of typos, including an error code.
This commit is contained in:
@@ -530,7 +530,7 @@ static void _scale_cubic(const uint8_t *p_src, uint8_t *p_dst, uint32_t p_src_wi
|
||||
int height = p_src_height;
|
||||
double xfac = (double)width / p_dst_width;
|
||||
double yfac = (double)height / p_dst_height;
|
||||
// coordinates of source points and cooefficiens
|
||||
// coordinates of source points and coefficients
|
||||
double ox, oy, dx, dy, k1, k2;
|
||||
int ox1, oy1, ox2, oy2;
|
||||
// destination pixel values
|
||||
@@ -561,7 +561,7 @@ static void _scale_cubic(const uint8_t *p_src, uint8_t *p_dst, uint32_t p_src_wi
|
||||
}
|
||||
|
||||
for (int n = -1; n < 3; n++) {
|
||||
// get Y cooefficient
|
||||
// get Y coefficient
|
||||
k1 = _bicubic_interp_kernel(dy - (double)n);
|
||||
|
||||
oy2 = oy1 + n;
|
||||
@@ -571,7 +571,7 @@ static void _scale_cubic(const uint8_t *p_src, uint8_t *p_dst, uint32_t p_src_wi
|
||||
oy2 = ymax;
|
||||
|
||||
for (int m = -1; m < 3; m++) {
|
||||
// get X cooefficient
|
||||
// get X coefficient
|
||||
k2 = k1 * _bicubic_interp_kernel((double)m - dx);
|
||||
|
||||
ox2 = ox1 + m;
|
||||
|
||||
Reference in New Issue
Block a user