ref: 66b868780ac8331dabbb1f23f77e06dafadbc9ff
parent: 5290bcd478a553c068e53432050730a1431f46b2
author: Olav Sørensen <olav.sorensen@live.no>
date: Wed Dec 1 10:47:23 EST 2021
[Mac] Fix occasional mouse scaling bug when leaving fullscreen
--- a/src/ft2_header.h
+++ b/src/ft2_header.h
@@ -12,7 +12,7 @@
#endif
#include "ft2_replayer.h"
-#define PROG_VER_STR "1.48"
+#define PROG_VER_STR "1.49"
// do NOT change these! It will only mess things up...
--- a/src/ft2_video.c
+++ b/src/ft2_video.c
@@ -306,9 +306,9 @@
SDL_SetWindowFullscreen(video.window, 0);
SDL_RenderSetLogicalSize(video.renderer, SCREEN_W, SCREEN_H);
- setWindowSizeFromConfig(false); // also updates mouse scaling and render size vars
+ setWindowSizeFromConfig(false);
+
SDL_SetWindowSize(video.window, SCREEN_W * video.upscaleFactor, SCREEN_H * video.upscaleFactor);
- SDL_SetWindowPosition(video.window, SDL_WINDOWPOS_CENTERED, SDL_WINDOWPOS_CENTERED);
SDL_SetWindowGrab(video.window, SDL_FALSE);
updateRenderSizeVars();