mirror of
https://github.com/CloverHackyColor/CloverBootloader.git
synced 2024-11-27 12:15:19 +01:00
fix mistake with x instead of y
Signed-off-by: Sergey Isakov <isakov-sl@bk.ru>
This commit is contained in:
parent
297b3601bf
commit
02108d8f48
@ -313,7 +313,7 @@ static void nsvg__addEdge(NSVGrasterizer* r, float x0, float y0, float x1, float
|
|||||||
static float nsvg__normalize(float *x, float* y)
|
static float nsvg__normalize(float *x, float* y)
|
||||||
{
|
{
|
||||||
// float d = sqrtf((*x)*(*x) + (*y)*(*y));
|
// float d = sqrtf((*x)*(*x) + (*y)*(*y));
|
||||||
float d = SqrtF(SqrF(*x) + SqrF(*x));
|
float d = SqrtF(SqrF(*x) + SqrF(*y));
|
||||||
if (d > 1e-6f) {
|
if (d > 1e-6f) {
|
||||||
float id = 1.0f / d;
|
float id = 1.0f / d;
|
||||||
*x *= id;
|
*x *= id;
|
||||||
|
Loading…
Reference in New Issue
Block a user