Michael Lutz
3cbbaa62db
Change: Never auto-select an 8bpp blitter unless explicitly allowed by the 'support8bpp' setting.
2021-02-26 19:26:52 +01:00
Jonathan G Rennison
93f2d5e056
Add GUI setting for shading trees on slopes in viewports
...
Deafult on, only for non-map mode
(Slope shading is always on in map mode)
2021-02-26 18:03:00 +00:00
Jonathan G Rennison
4ef363422a
Add 32bpp blitter support for adjusting brightness of drawn sprites
2021-02-26 18:02:13 +00:00
Patric Stout
9a3dbf3122
Fix 02e770ff
: allow estimating CloneVehicle if short on money ( #8748 )
...
CheckCompanyHasMoney() was also executed when not using DC_EXEC,
resulting in an error about shortage of money instead of the
estimation.
This mostly is a problem for AI players, as they will have no
way to know how much it would have cost.
2021-02-26 16:22:58 +01:00
Patric Stout
d4583fa64c
Fix #8123 : trams on half-tiles couldn't find depots ( #8738 )
...
Basically, follow_track.hpp contains a fix for half-tiles, but
this wasn't duplicated for when trying to find a depot and in
a few other places. This makes sure all places act the same.
2021-02-25 22:46:46 +01:00
Jonathan G Rennison
42e57995dd
Improve visibility of slopes under trees in viewport map vegetation mode
...
Loosely based on tree slope brightness adjustment from
https://github.com/nielsmh/OpenTTD/tree/tree-slope-brightness
2021-02-25 20:35:46 +00:00
translators
9209807d66
Update: Translations from eints
...
swedish: 19 changes by kustridaren
german: 1 change by Wuzzy2
slovak: 3 changes by FuryPapaya
2021-02-25 19:01:49 +00:00
Jonathan G Rennison
eabfae9d31
MacOS: Change bundle ID
...
See: #208
2021-02-25 12:15:37 +00:00
Michael Lutz
311df31fb1
Codechange: [OpenGL] Load all OpenGL functions dynamically.
2021-02-25 00:34:49 +01:00
Michael Lutz
a0c1a3f736
Codechange: [OpenGL] Simplify loading OpenGL extension functions.
2021-02-25 00:34:49 +01:00
Michael Lutz
e1e8cc3851
Fix #8734 : [OpenGL] Apply palette remap to cursor sprites. ( #8742 )
2021-02-24 22:10:25 +01:00
Patric Stout
6a8c461e38
Codechange: [OSX] GameLoop is really more like MainLoop
...
MainLoop() is used to bootstrap OSX, where later a callback is
done to GameLoop() to execute OpenTTD. All other video drivers
don't need that, so what is in GameLoop is in MainLoop for all
other drivers. This is rather confusing. So, instead, name
GameLoop MainLoopReal to be more in sync with the other drivers.
2021-02-24 21:58:47 +01:00
Patric Stout
67d3c6aa71
Codechange: [Video] move InteractiveRandom() to the VideoDriver
2021-02-24 21:58:47 +01:00
Patric Stout
c409f45ddd
Codechange: [Video] make the prototype of PollEvent() the same for all drivers
...
Additionally, call it from the draw-tick.
2021-02-24 21:58:47 +01:00
glx22
70e4845915
Change: [Actions] Use only CMake, CTest and CPack
2021-02-24 17:54:24 +01:00
glx22
90adac8f09
Change: [Actions] stop using 'run-vcpkg' action for Release
2021-02-24 17:54:24 +01:00
glx22
58640824d1
Change: [Actions] stop using 'run-cmake' action for Release
2021-02-24 17:54:24 +01:00
glx22
2fd2950eb5
Change: [Actions] stop using 'run-vcpkg' action for CI
2021-02-24 17:54:24 +01:00
glx22
30ae019095
Change: [Actions] stop using 'run-cmake' action for CI
2021-02-24 17:54:24 +01:00
Tyler Trahan
8476f12432
Change: Improve graph period markings ( #8732 )
2021-02-24 09:18:15 +01:00
frosch
79c2b81ffd
Fix: vehicle-cursor size-limit did not account for the interface zoom level.
2021-02-24 08:00:42 +00:00
Michael Lutz
46e13313e4
Fix #8731 : Always use a 32bpp blitter if font anti-aliasing is enabled.
2021-02-23 22:15:03 +01:00
translators
c93c9c099e
Update: Translations from eints
...
estonian: 7 changes by siimsoni
polish: 2 changes by yazalo
2021-02-23 18:59:47 +00:00
Niels Martin Hansen
cc465efa67
Change: [Win32] Use more modern way of getting free disk space
2021-02-23 11:25:39 +01:00
Niels Martin Hansen
b427ddce88
Codechange: Switch to explicit wide strings
2021-02-23 11:25:39 +01:00
Niels Martin Hansen
beeb9e0a1b
Remove: [Win32] Last pretenses of being able to build for Windows 95
2021-02-23 11:25:39 +01:00
Niels Martin Hansen
4bc69fec62
Doc: Remove #5661 from known-bugs, fixed in 1.10
2021-02-22 23:25:16 +00:00
glx22
b67245d71e
Fix: [CMake] CMake may use || at the end of custom commands
2021-02-22 23:17:45 +01:00
glx22
ec9d1a6b8f
Fix: [CMake] CMAKE_SOURCE_DIR may contain regex commands
2021-02-22 23:17:45 +01:00
Michael Lutz
06ca147a82
Fix 8706c36f
: Change RELEASE code, too.
2021-02-22 23:16:46 +01:00
Michael Lutz
af4d32357c
Codechange: [Win32] Move common initialization and finalization to the video driver base class.
2021-02-22 22:16:07 +01:00
Michael Lutz
7af1fd3ffb
Add: [OSX] OpenGL video driver.
2021-02-22 22:16:07 +01:00
Michael Lutz
78b8fc3e4f
Codechange: [Win32] Move GDI-specific variables and related functions into the GDI video driver class.
2021-02-22 22:16:07 +01:00
Michael Lutz
b4a3bc1ffe
Codechange: [OpenGL] Separate context state setup from general init.
2021-02-22 22:16:07 +01:00
Michael Lutz
8b90d4abe0
Codechange: [Win32] Move GDI specific drawing code into the GDI video driver class.
2021-02-22 22:16:07 +01:00
Michael Lutz
7f55f0a264
Codechange: [OSX] Add support for (un)locking the video buffer.
2021-02-22 22:16:07 +01:00
Michael Lutz
59e0d9618b
Codechange: [Win32] Split the video driver into a base class and a GDI backend class.
2021-02-22 22:16:07 +01:00
Michael Lutz
2f25e9bdf8
Codechange: [OSX] Separate video driver into a base and a Quartz implementation.
2021-02-22 22:16:07 +01:00
Michael Lutz
421b599541
Codechange: [SDL2] Split driver in base-part and default backend
2021-02-22 22:16:07 +01:00
Patric Stout
a303940372
Feature: [SDL2] OpenGL support
2021-02-22 22:16:07 +01:00
Michael Lutz
a77b202767
Codechange: [SDL] Move dirty_rect to class scope.
2021-02-22 22:16:07 +01:00
Patric Stout
e75858ce5e
Codechange: [SDL2] Allow several places to hook into the SDL driver
...
This allows future subdrivers to use these to manage their
own flow.
2021-02-22 22:16:07 +01:00
Patric Stout
101e394475
Codechange: [SDL2] Move functions and variables to class-scope
...
This allows future subdrivers to override them.
2021-02-22 22:16:07 +01:00
Patric Stout
0d58bc9384
Codechange: [SDL2] Move SDLSurface code to its own function
...
This increases readability, and allow future subdrivers to not
use SDLSurface to draw.
2021-02-22 22:16:07 +01:00
Patric Stout
6098811b49
Codechange: [SDL2] Split Start() in a few more functions
...
This makes it a bit easier to follow what is going on, and
allow future subdrivers to hook into a few of these functions.
Reworked the code slighly while at it, to return early where
possible.
2021-02-22 22:16:07 +01:00
Michael Lutz
86c309ea75
Codechange: [OpenGL] Let OpenGL clear the pixel buffer if possible.
2021-02-22 22:16:07 +01:00
Michael Lutz
94d8acb7d0
Add: A 32 bpp blitter that uses the animation buffer from the video backend to speed up palette animation.
2021-02-22 22:16:07 +01:00
Michael Lutz
ae7c63cc35
Codechange: [OpenGL] Use persistently mapped pixel buffers when supported.
2021-02-22 22:16:07 +01:00
Michael Lutz
200be7d20c
Add: [OpenGL] Support for a separate animation buffer that stores the palette values of the screen in addition to the colour buffer.
2021-02-22 22:16:07 +01:00
Michael Lutz
01ef44fa4f
Codechange: Allow blitter factories to decide at runtime if the blitter is usable.
2021-02-22 22:16:07 +01:00