Sergii Pylypenko
7a952eddbe
Emscripten: Try smaller audio buffer
2021-05-05 01:45:58 +03:00
Sergii Pylypenko
90320ddaed
Changed default settings to match Android default config file
2021-05-05 00:08:42 +03:00
Sergii Pylypenko
6daf1a3dd5
Fixed incorrect buffer size for Timidity mixer routine
2021-05-04 23:05:17 +03:00
Sergii Pylypenko
a1cdf3be27
Emscripten: increase audio buffer to unreasonable size
2021-05-04 23:04:17 +03:00
Sergii Pylypenko
6d3cb7b41e
Fixed libtimidity not working with SDL2
2021-05-04 22:54:17 +03:00
Sergii Pylypenko
747d429fb3
Emscripten: request fullscreen on first mouse click
2021-05-02 23:55:45 +03:00
Sergii Pylypenko
cc638cb825
Revert "Emscripten: fullscreen by default" - SDL2 fullscreen flag is emulated, it won't make browser window borderless
...
This reverts commit abbe0a4a0a .
2021-05-02 23:30:34 +03:00
Sergii Pylypenko
abbe0a4a0a
Emscripten: fullscreen by default
2021-05-02 02:03:24 +03:00
Sergii Pylypenko
73c4b2673b
Emscripten: disabled relative mouse mode
2021-05-01 00:10:46 +03:00
Sergii Pylypenko
fd84cfa196
Fixed Multiplayer dialog
2021-04-26 01:13:53 +03:00
Sergii Pylypenko
5b2f316cda
Fixed text input in the wrong edit box in Multiplayer server list
2021-04-26 00:05:45 +03:00
Sergii Pylypenko
1c0c2b7345
Fixed a crash in game options dialog
2021-04-25 23:48:28 +03:00
Sergii Pylypenko
561ce3ee7f
Merge tag '1.11.1' into 1.11
2021-04-25 22:58:47 +03:00
Charles Pigott
4f8b2aa003
Update: Backport language changes
2021-04-18 21:31:21 +01:00
stormcone
57f01188c2
Add: Hotkey to focus the build object class name filter editbox.
2021-04-18 21:31:21 +01:00
stormcone
bcb6174bf3
Add: Hotkey to focus the rail station class name filter editbox.
2021-04-18 21:31:21 +01:00
Peter Nelson
7b56a630aa
Fix #9042 : Make multiplayer server list height auto-fill window.
...
#9042 did not fix all combinations of scaling options. This additional
change makes the server list automatically fill available height.
2021-04-18 21:31:21 +01:00
Rubidium
4e5be077ff
Fix #6322 : [Script] Try to let the script die when no memory can be allocated instead of crashing the whole game
2021-04-18 21:31:21 +01:00
Rubidium
7aaaa2c5f5
Change: [Script] Let Script_FatalError use std::string instead of const char *
2021-04-18 21:31:21 +01:00
dP
c9c208f78e
Fix: Do not unlock railtypes when enabling wagons with GameScript
2021-04-18 21:31:21 +01:00
Milek7
522069d146
Fix: Corrupted savegame could cause heap corruption by writing outside link graph edge matrix. ( #9046 )
2021-04-18 21:31:21 +01:00
Milek7
e379c818b3
Fix: Corrupted savegame could crash the game by providing invalid gamelog enums. ( #9045 )
2021-04-18 21:31:21 +01:00
PeterN
eb5ae95c90
Fix: Inconsistent button sizing on AI/GS setting window depending on scale settings. ( #9044 )
2021-04-18 21:31:21 +01:00
Peter Nelson
e8965d32d9
Fix: Sizing of Multiplayer server list incorrect when GUI zoom doesn't match Font zoom.
...
The server information panel was scaled by GUI scale, which could result in a panel that is longer than the server list. This height difference is then maintained when the window is resized to fill the screen.
Instead, specify the minimum size by number of text lines and (summed total) padding.
2021-04-18 21:31:21 +01:00
PeterN
790b4f3076
Change: Improve layout and spacing of vehicle group widgets. ( #9041 )
...
Existing layout included a blank widget above the group list to align with the vehicle list, however since then an additional sort-by row was added.
Group list size tweaks to match normal row size (at least with normal gui and text size.)
Removed reduction of 2 rows in the group list <- main culprit of odd sizing.
Removed fill attribute on buttons which gave strange sizes, and put it on the group info widget instead.
Tweaked various soft-padding values to line up (centreing text with a 1px offset does not make centred text.)
2021-04-18 21:31:21 +01:00
Rubidium
4f0f113887
Fix #7513 : recursive array/class/table release caused stack overflow
2021-04-18 21:31:21 +01:00
Rubidium
53ce868185
Fix #7513 : recursive garbage collection caused stack overflow
2021-04-18 21:31:21 +01:00
Milek7
144ed59aef
Fix: Add virtual destructor to link graph Path.
...
Classes derived from Path were freed through base class pointer, but no virtual destructor was present.
2021-04-18 21:31:21 +01:00
Michael Lutz
40f7d085f4
Fix #9028 : [OpenGL] Clear cursor cache on destroying the OpenGL backend.
2021-04-18 21:31:21 +01:00
Rubidium
1f34264017
Fix: [win32] buffer_locked state not initialised, causing _screen.dst_ptr to be potentially not set
2021-04-18 21:31:21 +01:00
Rubidium
fa57e33dfe
Fix: [Video] fast forward boolean states not initialised, potentially causing unstoppable fast forward
2021-04-18 21:31:21 +01:00
Rubidium
dee9d6dfd4
Fix: [SDL] buffer_locked state not initialised, causing _screen.dst_ptr to be potentially not set
2021-04-18 21:31:21 +01:00
rubidium42
961cda50bc
Fix #8874 : show a warning when a NewGRF scan is requested multiple times from the console ( #9022 )
2021-04-18 21:31:21 +01:00
Wim Leflere
fe43c2d18f
Fix: clang-cl build ( #9018 )
...
Remove macro redefinitions
Add final and fallthrough attributes for clang-cl
2021-04-18 21:31:21 +01:00
PeterN
59406363bb
Fix #9015 : Don't set free space value if not requested. ( #9016 )
2021-04-18 21:31:21 +01:00
rubidium42
cbc1d0c893
Fix #9008 : Validate starting year given on the command line. ( #9014 )
...
An invalid starting year causes all sorts of weird behaviour and crashes in map generation.
Now just set the appropriate setting via IConsoleSetSetting so the validation
and, if needed, clamping is performed on the starting year value.
2021-04-18 21:31:21 +01:00
Rubidium
e0594d6cac
Change: warn the user about the resolving of an address being extra very slow
2021-04-18 21:31:21 +01:00
Rubidium
51cb9e71e5
Fix: split the UDP blocking of sockets to only the socket involved, and when another thread is busy do not attempt to process the packets of that socket
2021-04-18 21:31:21 +01:00
Rubidium
27630d255c
Change: move some things only relevant to UDP from network.cpp to network_udp.cpp
2021-04-18 21:31:21 +01:00
Michael Lutz
d04423251b
Fix: Check for a validly mapped OpenGL screen buffer during driver init. ( #9007 )
2021-04-18 21:31:21 +01:00
Patric Stout
9e5ab59eab
Change: reworked how the Game Option display options are drawn
...
"Hardware acceleration" was not aligned with its checkbox. So instead
of drawing the labels left and the options right, now draw settings
one by one with a spacer between label and option to get the right
spacing.
Also, use SetPIP instead of repeating a SetPadding for all but
last element.
2021-04-18 21:31:21 +01:00
Patric Stout
898c61d457
Feature: allow a toggle to enable/disable vsync
...
Vsync should be off by default, as for most players it will be
better to play without vsync. Exception exist, mainly people who
play in fullscreen mode.
2021-04-18 21:31:21 +01:00
Peter Nelson
ec8abd072d
Fix: Adjust scrolling interval of credits to account for text line height
2021-04-18 21:31:21 +01:00
Jonathan G Rennison
0f962aaf03
Fix: Data races on cursor state in OpenGL backends
2021-04-18 21:31:21 +01:00
Jonathan G Rennison
eeb6e9d417
Fix: Thread unsafe use of sprite cache in OpenGLBackend::DrawMouseCursor
...
See also: #8870
See also: #8977
2021-04-18 21:31:21 +01:00
Charles Pigott
0434cc017b
Fix #8956 : Industry disaster news messages showed the wrong location ( #8992 )
2021-04-18 21:31:21 +01:00
Niels Martin Hansen
5905fdb26e
Fix: [Win32] Font glyphs of certain widths broke
...
Font glyphs between 33 and 39 pixels wide, in the Win32 font system, used wrong alignment and caused glyphs to appear broken.
When in the 33 to 39 pixel range, glyphs without AA were rounded down to 32 pixel pitch, instead of up to 64 pixel pitch.
2021-04-18 21:31:21 +01:00
Patric Stout
4ffe7131cb
Fix 70bc55cfd6: snow line height was set while calculating desert line ( #8989 )
...
Seems I liked copy/pasting just a tiny bit too much.
2021-04-18 21:31:21 +01:00
Michael Lutz
aadc7beccc
Fix #8930 : [Win32] Don't handle printable keys on keydown if an edit box is in focus.
...
Handle printable input only when the matching WM_CHAR message is incoming.
Without an edit box, do the handling in keydown as usual to support hotkeys.
2021-04-18 21:31:21 +01:00
Wim Leflere
9d233bb7d4
Change: [win32] Use user UI language for initial language selection ( #8973 ) ( #8974 )
2021-04-18 21:31:21 +01:00