Parcourir la source

Default mouseScale fixed

- Didn't set X and Y values correctly.
pull/711/head
ChrisDill il y a 6 ans
Parent
révision
a707574f33
1 fichiers modifiés avec 2 ajouts et 2 suppressions
  1. +2
    -2
      src/core.c

+ 2
- 2
src/core.c Voir le fichier

@ -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
}

Chargement…
Annuler
Enregistrer