Commit Graph

1100 Commits

Author SHA1 Message Date
31a55c0909 Merge tag '13.4' into 13 2023-08-23 23:59:48 +01:00
Patric Stout
4b7fcaca0f Fix 07add7a9: [Win32] use full monitor resolution for fullscreen (#10985)
On Windows in fullscreen you cannot reach the top with
the cursor for the halve of the height of your toolbar.

Additionally, on Win10 in fullscreen you can see the actual toolbar.
2023-06-11 13:42:31 +02:00
Patric Stout
46d30aa970 Fix: [Win32] position window in center of workspace of primary display (#10942) 2023-06-04 22:47:05 +02:00
Patric Stout
00bcda7e33 Fix: disable hardware acceleration when GPU driver crashed the game last attempt (#10928) 2023-06-04 22:47:05 +02:00
Patric Stout
045e81809a Codechange: remove queue_wrap / last_position from mouse movement
No backend uses it anymore, so also no longer any need to support
it.
2023-06-04 22:47:05 +02:00
Patric Stout
2ce9f640ef Fix: [SDL] unify the way X11 and Wayland handle mouse events
Basically, we drop RelativeMode completely, and use the same trick
as used by the Windows driver: read all motion events till the last
one, and use that as value.
2023-06-04 22:47:05 +02:00
Rubidium
261d674866 Fix #10568: "can savegame be loaded check" failed in dedicated server
* If loading fails, it usually returns SL_REINIT which doesn't trigger check
 * If savegame has NewGRFs, it complains NewGRFs are not allowed in intro game
2023-03-31 16:43:32 +02:00
caed1ebca9 Merge remote-tracking branch 'upstream/release/13' into 13 2023-02-25 05:03:41 +00:00
a9d56369a0 Merge commit '13.0-RC1~2' 2023-02-25 04:49:57 +00:00
Rubidium
88030d781b Fix #10309: [SDL] Uninitialized width and height when turning off full screen 2023-01-28 17:10:46 +01:00
Peter Nelson
9666e46739 Feature: Variable GUI scale.
GUI scale is now variable from 100% to 500%, and no longer restricted to
powers-of-2.
2022-11-12 18:28:39 +00:00
PeterN
4031894aef Cleanup: Remove svn-style $Id$ comments. (#10122) 2022-11-01 18:24:31 -06:00
Bouke Haarsma
45d98f689a Fix #9993: Handle DPI changes on macOS and Windows 2022-10-16 16:52:14 +02:00
Bouke Haarsma
f3fd9b5895 Codechange: typo in code comment (#10061) 2022-09-29 00:12:21 +01:00
Niels Martin Hansen
345dcd3c7b Add: Show current video driver info in Options window 2022-05-03 21:03:30 +02:00
Miguel Horta
136db27f51 Merge tag '12.2' into 12 2022-04-12 12:30:17 +01:00
Michael Lutz
32e2a99dfd Codechange: Extend DrawSpriteToRgbaBuffer to work with 8bpp blitters. 2022-01-05 13:10:50 +01:00
Michael Lutz
bde0de370d Codechange: [OSX] Simplify touchbar button data definition. 2022-01-05 13:10:50 +01:00
Michael Lutz
c1806bfca1 Fix #9743: [OSX] Only (re-)create touchbar sprites when requested by the main loop. 2022-01-05 13:10:50 +01:00
Michael Lutz
f24c334770 Fix #9743: [OSX] Don't try to render touchbar sprites with invalid zoom level. 2022-01-05 13:10:50 +01:00
Michael Lutz
ea80e46e73 Change: [OSX] Allow touchbar usage on all supported OS versions.
Touchbar support was introduced in 10.12.2. There's no need to limit
support to 10.15+, as the convenience class NSButtonTouchBarItem is
easily replicated.
2022-01-05 13:10:50 +01:00
Michael Lutz
57b992717b Codechange: Extend DrawSpriteToRgbaBuffer to work with 8bpp blitters. 2022-01-01 12:19:30 +01:00
Michael Lutz
69c8ed9965 Codechange: [OSX] Simplify touchbar button data definition. 2022-01-01 12:19:30 +01:00
Michael Lutz
b351cbe490 Fix #9743: [OSX] Only (re-)create touchbar sprites when requested by the main loop. 2022-01-01 12:19:30 +01:00
Michael Lutz
f40e82a19d Fix #9743: [OSX] Don't try to render touchbar sprites with invalid zoom level. 2022-01-01 12:19:30 +01:00
Michael Lutz
80fc5fb46c Change: [OSX] Allow touchbar usage on all supported OS versions.
Touchbar support was introduced in 10.12.2. There's no need to limit
support to 10.15+, as the convenience class NSButtonTouchBarItem is
easily replicated.
2022-01-01 12:19:30 +01:00
Sergii Pylypenko
e99740b201 Emscripten: the ultimate final fix for the screen resolution at start 2021-12-21 02:39:35 +02:00
Sergii Pylypenko
77257fc7ad Emscripten: fixed a crash 2021-12-20 03:04:55 +02:00
Sergii Pylypenko
7f7d6564c5 Emscripten: fixed SDL window size set incorrectly at start 2021-12-20 02:53:12 +02:00
Sergii Pylypenko
744951c8df Emscripten: implemented two finger pinch-zoom 2021-12-20 01:58:06 +02:00
Sergii Pylypenko
aee14799a6 Android: fixed two finger scrolling bug 2021-12-20 01:47:46 +02:00
Sergii Pylypenko
eab51cb2b9 Emscripten: adjust resolution to the device DPI 2021-12-19 01:38:36 +02:00
Sergii Pylypenko
f6245a47e0 Emscripten: generate some screen resolutions from the browser window size 2021-12-19 00:20:51 +02:00
Sergii Pylypenko
c2f53dfcde Emscripten: fixed fullscreen mode switching 2021-12-18 23:55:56 +02:00
Sergii Pylypenko
793444e1ba Merge tag '12.1' into branch 12 2021-12-10 02:36:38 +02:00
Sergii Pylypenko
9b2e51b755 Copy server invite code to the clipboard automatically 2021-12-10 01:40:51 +02:00
Sergii Pylypenko
0200e3ca1f Re-enabled fullscreen option in settings 2021-12-01 01:20:53 +02:00
Sergii Pylypenko
2f6b20cbfd Merge branch upstream/master while introducing compile errors and reverting parts of Android changes, video BPP options are gone 2021-11-29 02:20:37 +02:00
Sergii Pylypenko
47b01a0528 Fixed compilation 2021-11-28 03:39:27 +02:00
Sergii Pylypenko
339b89f831 Emscripten: Fixed compilation 2021-11-28 03:39:26 +02:00
Sergii Pylypenko
a3b87d43a3 Emscripten: fixed key events for text input 2021-11-28 03:39:26 +02:00
Sergii Pylypenko
81e820c93e Emscripten: fixed Ctrl key not working 2021-11-28 03:39:26 +02:00
Sergii Pylypenko
7706396a08 Fixed fast forward not working in single-threaded mode 2021-11-28 03:35:06 +02:00
Sergii Pylypenko
843329d7eb Fast forward requires threaded renderer, and OpenTTD have fixed threaded renderer in SDL1.2 backend 2021-11-28 03:34:42 +02:00
Sergii Pylypenko
7defb52028 Merge branch upstream/master 2021-11-28 03:16:36 +02:00
Sergii Pylypenko
4a3074c446 Emscripten: disabled fullscreen mode, it apparently crashes in iOS 14.4 2021-11-28 02:04:25 +02:00
Sergii Pylypenko
d7f1b5869d Emscripten: request fullscreen on first mouse click 2021-11-28 02:04:25 +02:00
Sergii Pylypenko
fcc0d68864 Emscripten: disabled relative mouse mode 2021-11-28 02:04:25 +02:00
Sergii Pylypenko
41edadab81 Merge branch upstream/master 2021-11-28 01:52:06 +02:00
Charles Pigott
fc7ed25915 Change: Ignore refresh_rate setting when vsync is enabled 2021-10-23 20:01:59 +02:00