diff options
| author | ChrisDill <[email protected]> | 2019-01-02 10:46:19 +0000 |
|---|---|---|
| committer | ChrisDill <[email protected]> | 2019-01-02 10:46:19 +0000 |
| commit | a707574f33467f81e8e300e09db23269bf2c1b98 (patch) | |
| tree | 2ba8d61020abb6a8812d2165e6d335eec0f9f74c /src | |
| parent | 893329886451706033d8af4901cf7c251903a136 (diff) | |
| download | raylib-a707574f33467f81e8e300e09db23269bf2c1b98.tar.gz raylib-a707574f33467f81e8e300e09db23269bf2c1b98.zip | |
Default mouseScale fixed
- Didn't set X and Y values correctly.
Diffstat (limited to 'src')
| -rw-r--r-- | src/core.c | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -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 } |
