ref: bfaa5bd888aad49bc6f6493944ddee95096c000e
parent: f95fbe700c79283f81a92f4628fceaf55c1ded49
author: Olav Sørensen <olav.sorensen@live.no>
date: Mon Jun 19 13:47:01 EDT 2023
Update ft2_mouse.c
--- a/src/ft2_mouse.c
+++ b/src/ft2_mouse.c
@@ -77,7 +77,9 @@
for (int32_t i = 0; i < NUM_CURSORS; i++)
{
- const int32_t scaleFactor = video.yScale;
+ int32_t scaleFactor = video.yScale;
+ if (scaleFactor > 8) // just in case
+ scaleFactor = 8;
SDL_Surface *surface = SDL_CreateRGBSurface(0, MOUSE_CURSOR_W*scaleFactor, MOUSE_CURSOR_H*scaleFactor, 32, 0, 0, 0, 0);
if (surface == NULL)