Browse Source

Tweaks

pull/2194/head
Ray 3 years ago
parent
commit
e7f48eb16b
2 changed files with 5 additions and 5 deletions
  1. +3
    -3
      src/raymath.h
  2. +2
    -2
      src/rtextures.c

+ 3
- 3
src/raymath.h View File

@ -328,9 +328,9 @@ RMAPI Vector2 Vector2Normalize(Vector2 v)
if (length > 0)
{
float ilength = 1.0f / length;
result.x = v.x * ilength;
result.y = v.y * ilength;
float ilength = 1.0f/length;
result.x = v.x*ilength;
result.y = v.y*ilength;
}
return result;

+ 2
- 2
src/rtextures.c View File

@ -131,8 +131,8 @@
#endif
#if defined(SUPPORT_FILEFORMAT_QOI)
#define QOI_MALLOC RL_MALLOC
#define QOI_FREE RL_FREE
#define QOI_MALLOC RL_MALLOC
#define QOI_FREE RL_FREE
#define QOI_IMPLEMENTATION
#include "external/qoi.h"

Loading…
Cancel
Save