History

[Mac] Fix occasional mouse scaling bug when leaving fullscreen

Olav Sørensen committed 4 years ago

Commit 66b86871 parent 5290bcd2 files · +3 −3Browse files

Unified · Split

2 files
  1. src/ft2_header.h +1 −1
  2. src/ft2_video.c +2 −2
src/ft2_header.h+1−1
@@ -12,7 +12,7 @@ · 11 unmodified lines
1212 #endif
1313 #include "ft2_replayer.h"
1414
15−#define PROG_VER_STR "1.48"
15+#define PROG_VER_STR "1.49"
1616
1717 // do NOT change these! It will only mess things up...
1818
src/ft2_video.c+2−2
@@ -306,9 +306,9 @@ void leaveFullScreen(void) · 305 unmodified lines
306306 SDL_SetWindowFullscreen(video.window, 0);
307307 SDL_RenderSetLogicalSize(video.renderer, SCREEN_W, SCREEN_H);
308308
309− setWindowSizeFromConfig(false); // also updates mouse scaling and render size vars
309+ setWindowSizeFromConfig(false);
310+
310311 SDL_SetWindowSize(video.window, SCREEN_W * video.upscaleFactor, SCREEN_H * video.upscaleFactor);
311− SDL_SetWindowPosition(video.window, SDL_WINDOWPOS_CENTERED, SDL_WINDOWPOS_CENTERED);
312312 SDL_SetWindowGrab(video.window, SDL_FALSE);
313313
314314 updateRenderSizeVars();

Keyboard shortcuts

General

Show keyboard shortcuts
?
Focus the current search
/

Issues and pull requests

Open filters
f

Issues, pull requests and Inbox

Select next item
j↓
Select previous item
k↑
Open selected item
Enter
Dismiss filters or clear selection
Esc

Repository code

Go to file
t