Patric Stout
0e54c32452
Codechange: [SDL2] Use MakeDirty() to force a redraw
...
The original code is "strictly correct", but just reads really
weird, and we use MakeDirty() in several other places instead too.
2021-01-30 21:43:59 +01:00
Patric Stout
30e69c518b
Codechange: [SDL2] Rework how palette is updated
...
It now follows more what the Win32 driver does, and has far less
exceptions and special casing.
MakePalette creates the Palette and prepares surface.
UpdatePalette updates the Palette.
CheckPaletteAnim checks if UpdatePalette needs to be called and
marks the whole screen dirty so DrawSurfaceToScreen will do a
full redraw.
2021-01-30 21:43:59 +01:00
Patric Stout
eb80fefd1d
Fix: [SDL2] Display why SDL_CreateWindow() failed in case it does
...
All SDL_NNN errors print SDL_GetError, except for this one place.
2021-01-30 21:43:59 +01:00
Patric Stout
19345908cb
Codechange: [SDL2] Split away CreateMainWindow from CreateMainSurface
...
This makes the code a bit more readable, as both intentions are
more clear, and there is less nesting in the main function.
2021-01-30 21:43:59 +01:00
Patric Stout
8c37e5c526
Codechange: [SDL2] reworked the different surfaces to make it more readable
2021-01-30 21:43:59 +01:00
Patric Stout
8de325f256
Codechange: [SDL2] Only prepare "caption" if you are going to us it
2021-01-30 21:43:59 +01:00
Patric Stout
e41ec5b42e
Codechange: [SDL2] Minor code cleanup to remove silly variable
2021-01-30 21:43:59 +01:00
Patric Stout
678031f9b3
Codechange: [SDL2] Only set _cur_palette, never _local_palette
2021-01-30 21:43:59 +01:00
Patric Stout
f31b65825f
Codechange: [SDL2] Move FindStartupDisplay to its own function
2021-01-30 21:43:59 +01:00
Patric Stout
6916fc76bd
Codechange: [SDL2] reworked FindResolutions to be more like the rest
...
There was no default resolution fallback, and the code was different
from the win32 driver. It is now named the same and much more
similar.
2021-01-30 21:43:59 +01:00
Patric Stout
a52d716c88
Codechange: [SDL2] remove include-protection
...
This is already done by CMake: if SDL2 is not detected, this file
is not included.
2021-01-30 21:43:59 +01:00
translators
5ae2c1552b
Update: Translations from eints
...
estonian: 353 changes by siimsoni
2021-01-30 18:14:36 +00:00
translators
48698403a8
Update: Translations from eints
...
estonian: 85 changes by siimsoni
korean: 30 changes by telk5093
portuguese: 24 changes by CheapWebdesign
2021-01-29 18:17:44 +00:00
Patric Stout
4831b4fa96
Codechange: [Actions] we no longer need xdg-basedir ( #8615 )
...
This was already removed from the "ci-build", but not yet from
"release".
2021-01-29 10:38:58 +01:00
Owen Rudge
1187dc3217
Feature: [Actions] Create .zip for macOS build
2021-01-28 19:15:36 +00:00
translators
3dac139b00
Update: Translations from eints
...
estonian: 5 changes by siimsoni
hungarian: 7 changes by andrejmoltok
2021-01-28 18:16:32 +00:00
translators
da78b5c130
Update: Translations from eints
...
estonian: 117 changes by siimsoni
german: 5 changes by Wuzzy2
slovak: 23 changes by FuryPapaya
2021-01-27 18:14:58 +00:00
translators
027452fef8
Update: Translations from eints
...
german: 11 changes by Wuzzy2
2021-01-26 18:14:06 +00:00
translators
67fa5a23b9
Update: Translations from eints
...
estonian: 7 changes by siimsoni
2021-01-25 18:42:15 +00:00
translators
b2d9a2dc79
Update: Translations from eints
...
estonian: 12 changes by siimsoni
finnish: 1 change by hpiirai
2021-01-23 18:39:34 +00:00
glx22
6b8ad5a9b1
Change: Apply some consistency to singleplayer related comments
2021-01-22 22:19:55 +01:00
glx22
07385c3662
Fix: Use the same safety checks as 'stop_ai' for 'reload_ai'
2021-01-22 22:19:55 +01:00
glx22
485aafc1b7
Fix: Never delete the last existing company in singleplayer mode
2021-01-22 22:19:55 +01:00
dP
b17177bd20
Fix: Center text and image in vehicle statusbar vertically
2021-01-22 22:18:17 +01:00
translators
8fe79e153d
Update: Translations from eints
...
estonian: 8 changes by siimsoni
german: 89 changes by Wuzzy2
finnish: 2 changes by hpiirai
dutch: 27 changes by Afoklala
2021-01-22 18:43:56 +00:00
Charles Pigott
a252679a12
Doc: Prepare for 1.11.0-beta1 release
2021-01-22 11:13:57 +01:00
Charles Pigott
b61670f929
Doc: Forwardport changelog & doc changes from 1.10 branch
2021-01-22 11:13:57 +01:00
dP
bab7de6cf2
Feature: Allow GameScripts to add additional text to Industry view window
2021-01-22 09:50:53 +00:00
Pavel Stupnikov
4b42ecb0f6
Feature: Add tile parameter for GSCompany.ChangeBankBalance to show text effect if needed ( #8573 )
2021-01-22 10:28:26 +01:00
Andy
3345d54ad9
Doc: add a png representation of the palette overlaid with indexes (decimal) ( #8547 )
2021-01-22 10:26:45 +01:00
translators
33e27e9480
Update: Translations from eints
...
estonian: 15 changes by siimsoni
russian: 23 changes by Ln-Wolf
2021-01-21 18:42:13 +00:00
translators
6e1581a17d
Update: Translations from eints
...
german: 2 changes by Wuzzy2
russian: 13 changes by Ln-Wolf
2021-01-20 18:44:27 +00:00
translators
27caabdb91
Update: Translations from eints
...
german: 23 changes by Wuzzy2
russian: 70 changes by Ln-Wolf
2021-01-19 18:41:55 +00:00
frosch
b3d048dfcf
Change: [NewGRF] industry special flag 19 now specifically targets only passenger production, instead of the second cargo of any water-based industry. ( #8590 )
...
This behavior is less surprising to NewGRF authors, and may even be intentional behavior for some industries.
2021-01-18 22:42:10 +01:00
Michael Lutz
7da224d29d
Fix #8589 , 653e7fa548
: Motion counter is NewGRF-visible but not saved, leading to desyncs. ( #8591 )
2021-01-18 21:11:38 +01:00
Owen Rudge
a2bd0a14e1
Feature: [Actions] ARM64 builds for Windows
2021-01-18 08:57:58 +00:00
Owen Rudge
6d95ed53dc
Feature: Add support for rdtsc for ARM-based Windows (MSVC)
2021-01-18 08:57:58 +00:00
Owen Rudge
2d9e164ec4
Fix: [Actions] Give Universal Mac packages the "universal" suffix
2021-01-18 08:57:39 +00:00
Patric Stout
1eceee915e
Codechange: [SDL2/Win32] Be consistent how 0bpp blitters are not allowed
...
Sometimes it returned an usererror(), sometimes Start() failed.
Now it always fails on Start(), so nothing else has to check again
what blitter is used.
AfterBlitterChange() can never change to a 0bpp, so it is sufficient
to guard this with an assert().
2021-01-17 19:57:36 +01:00
Patric Stout
49df9c4155
Codechange: [Win32] Use _local_palette for most operations
...
Other drivers do this too, and this makes the world a bit more
the same.
2021-01-17 19:57:36 +01:00
Patric Stout
881d17d8f1
Codechange: [Win32] use CSleep() instead of Sleep() like everywhere else
...
Functional it is identical. Just helps future-us when searching
for sleeps.
2021-01-17 19:57:36 +01:00
Patric Stout
689404a4a1
Codechange: [Win32] Use return-early in RegisterWndClass()
2021-01-17 19:57:36 +01:00
Michael Lutz
7415964a4d
Codechange: [Win32] Remove Windows 95 specific mouse tracking work-around.
2021-01-17 19:57:36 +01:00
Matt Kimber
40d5fe1631
Fix eeb88e8
: Trains reversed while paused do not correctly update sprite bounds ( #8540 )
2021-01-17 19:57:16 +01:00
translators
120c6fda61
Update: Translations from eints
...
catalan: 11 changes by J0anJosep
2021-01-17 18:39:39 +00:00
frosch
540fdfbf5a
Fix 0e62a398c7
: Only center the window, when it is smaller than the screen. ( #8581 )
2021-01-16 23:36:15 +01:00
translators
c91a7b5e2e
Update: Translations from eints
...
norwegian (bokmal): 65 changes by fnutt
french: 1 change by glx22
2021-01-16 18:40:42 +00:00
Owen Rudge
0a129bc810
Change: Label Mac builds as "macos" instead of "macosx"
2021-01-16 10:04:51 +00:00
Owen Rudge
ce42e819b9
Feature: Build macOS build as a universal binary
2021-01-15 20:26:59 +00:00
frosch
0e62a398c7
Add: [SDL2] video driver parameter to put OpenTTD on a particular display on start. By default use the display where the mouse cursor is. ( #8572 )
2021-01-14 23:29:29 +01:00