Browse Source

Default mouseScale fixed

- Didn't set X and Y values correctly.
pull/711/head
ChrisDill 6 years ago
parent
commit
a707574f33
1 changed files with 2 additions and 2 deletions
  1. +2
    -2
      src/core.c

+ 2
- 2
src/core.c View File

@ -333,7 +333,7 @@ static int defaultKeyboardMode; // Used to store default keyboar
// Mouse states
static Vector2 mousePosition; // Mouse position on screen
static Vector2 mouseScale = { 1.0f }; // Mouse default scale
static Vector2 mouseScale = { 1.0f, 1.0f }; // Mouse default scale
static bool cursorHidden = false; // Track if cursor is hidden
static bool cursorOnScreen = false; // Tracks if cursor is inside client area
static Vector2 touchPosition[MAX_TOUCH_POINTS]; // Touch position on screen
@ -2114,7 +2114,7 @@ void SetMousePosition(Vector2 position)
void SetMouseScale(float scale)
{
#if !defined(PLATFORM_ANDROID)
mouseScale = (Vector2){ scale };
mouseScale = (Vector2){ scale, scale };
#endif
}

Loading…
Cancel
Save