Gymnasiast
bd7ac0bace
Revert "Reduce duplication of gx readers ( #16882 )"
...
This reverts commit 2b371db8e3 .
2022-03-28 21:49:26 +02:00
Duncan
2b371db8e3
Reduce duplication of gx readers ( #16882 )
...
* Reduce duplication of gx readers
* Readd nographics return
2022-03-28 09:32:33 +01:00
spacek531
a3700c832a
Parkobj loads rct_gx ( #16806 )
...
* allow loading of lgx rct_gx packed images within parkobjs
* add changelog entry
* allow loading of lgx without range
2022-03-19 18:02:02 +00:00
Hielke Morsink
6ba0a3bd49
Use u8 strings when dealing with file paths
2022-03-01 22:12:39 +01:00
Hielke Morsink
ba85cf4873
Close #15896 : Refactor out the ZoomLevel operators
2022-02-26 23:14:59 +01:00
Michael Steenbeek
5edc561715
Close #11437 : Migrate old platform methods
2022-02-18 21:57:00 +01:00
Silent
5028ce3bf6
Turn GeneralConfiguration::rct1_path into an u8string
...
Fixes a crash when opening Advanced Options on the first launch
2022-02-12 16:07:04 +01:00
Gymnasiast
2e7e90a018
Remove platform_get_openrct2_data_path()
2022-01-05 15:26:51 +01:00
Michał Janiszewski
7b0e6ad0b6
Reformat with clang-format-12 from updated CI image
2021-12-12 17:48:52 +01:00
Ted John
5f9d03e9df
Refactor ImageId and use in more functions
2021-12-03 19:59:33 +01:00
Hielke Morsink
0f2dffcc16
Apply review suggestions
2021-12-01 00:11:45 +01:00
Hielke Morsink
53d9bfa8b4
Update implicit zoom conversions
2021-12-01 00:08:35 +01:00
Hielke Morsink
4b4b3333d6
Remove unnecessary else blocks
2021-09-16 18:31:12 +02:00
ζeh Matt
59a6c34db4
Make use of std::optional strict
2021-09-13 20:02:32 +03:00
ZehMatt
8fa4823055
Pass rct_drawpixelinfo as explicit argument, make DrawSpriteArgs const
2021-08-25 15:37:44 +03:00
Matt
c30bd1266f
Refactor IStream::ReadArray to return unique_ptr
2021-02-12 19:30:53 +02:00
Matt
7dfe0b02a6
Add ScrollingText.h
2021-01-02 16:43:17 +02:00
Matt
9d473bbfbe
Refactor logic to allow to draw 256 banners at the same time
2021-01-02 16:43:17 +02:00
Hielke Morsink
f0c1ea1d37
Split declarations and definitions to improve compile times when editing ( #13332 )
...
* Split FileStream declarations and definitions
* Split JobPool declarations and definitions
* Split StringBuilder declarations and definitions
* Split StringReader declarations and definitions
* Split ZoomLevel declarations and definitions
* Fix missing include in FileClassifier.cpp
* Remove pragma once from source files
* Fix missing include in StringBuilder.h
* Update Xcode project
* Fix compilation of tests
Co-authored-by: Michael Steenbeek <m.o.steenbeek@gmail.com >
2020-11-07 12:42:04 +00:00
Aaron van Geffen
7b5087f057
Update copyright year to 2020
2020-07-21 15:04:34 +02:00
finicu212
ec33551b24
Fix #12021 : Tie coords on gfx_draw_sprite_raw_masked_software ( #12080 )
...
Make gfx_draw_sprite_raw_masked_software use ScreenCoordsXY object
2020-06-29 18:38:03 -03:00
frutiemax
f86931d8a0
Close #12019 : Use ScreenCoordsXY on gfx_draw_sprite_software
2020-06-22 23:52:54 +02:00
frutiemax
4a17d1d64e
Fix #12020 - Use ScreenCoordsXY on gfx_draw_sprite_palette_set_software ( #12028 )
...
* Fix #12020 - Use ScreenCoordsXY on gfx_draw_sprite_palette_set_software
Co-authored-by: Tulio Leao <tupaschoal@gmail.com >
2020-06-21 22:52:48 -03:00
Michael Steenbeek
e83b86df4d
Replace occurrences of OpenRCT with OpenRCT2 ( #11898 )
2020-06-08 15:11:07 +02:00
Ted John
58f32a0afd
Make use of gfx_sprite_to_buffer
2020-06-01 21:15:25 +01:00
Ted John
21a9d8f934
Refactor RLE drawing, one arg struct
2020-06-01 20:46:21 +01:00
Ted John
d0b1bfbe87
Refactor bitmap drawing, one arg struct
2020-06-01 20:46:21 +01:00
Ted John
626178a70e
Add constants for palette indexes
2020-05-28 22:37:50 +01:00
Ted John
d3f7ec4844
Create new PaletteMap type to replace byte pointers
2020-05-28 20:00:23 +01:00
Michael Steenbeek
f0bd05cf6d
Part of #11158 : Remove more C-style casts ( #11743 )
2020-05-13 21:22:50 -03:00
Michael Steenbeek
0ecc64f781
Fix #11407 : Setting an RCT1 path needs better error messages ( #11418 )
2020-04-25 15:36:44 +02:00
Michał Janiszewski
2323cc1596
Use named casts instead of old-style casts
...
Change prepared with clang-tidy and google-readability-casting check
2020-04-22 17:09:29 +02:00
Ted John
1af2720518
Create stub magnify versions of software blitters
2020-03-23 15:54:04 +00:00
Ted John
d34dec9c27
Create ZoomLevel struct to add two new zoom levels
2020-03-23 15:54:03 +00:00
Matt
d6c3373b5e
Remove unused parameter and minor cleanup
2020-02-15 21:28:28 +01:00
ζeh Matt
b82d1bbc64
Fix #10015 : Crash when certain images are drawn ( #10016 )
2019-09-23 22:37:28 +02:00
Ted John
c653f13552
Add tertiary colour to ImageId
2019-08-24 22:40:19 +01:00
Ted John
3925a6162d
Start using ImageId
2019-08-24 18:35:40 +01:00
Ted John
6d80e65783
Increase the capacity of dynamic / object images
2019-08-23 20:14:05 +01:00
Ted John
f842d8a693
Fix #5103 : OpenGL: ride track preview not rendered
2019-05-02 00:07:43 +00:00
Aaron van Geffen
2af13904c5
Update copyright notices for 2019. ( #8903 )
2019-03-17 07:16:15 +00:00
Michał Janiszewski
8a395e3706
Fix misaligned access ( #8665 )
...
Platforms like ARM are very sensitive to unaligned access. This change
makes sure the addresses obey the C++ standard and are properly aligned.
2019-02-04 23:15:14 +01:00
ζeh Matt
7d19a5bc77
Refactor memcpy to std::memcpy and memset to std::memset ( #8408 )
2018-12-15 22:23:31 +01:00
Ted John
06f203a7e7
Implement surfaces, edges and stations as objects
2018-12-09 23:30:40 +00:00
Linus Unnebäck
fd07be587a
Remove Math::Clamp in favour of std::clamp
2018-08-12 16:47:12 +01:00
clang-format
b02dfdbc93
Binpack function arguments together
...
Previously when the arguments of a function wouldn't fit on a single line, clang-format would put each argument on its own line instead. By enabling the binpack parameter setting, it tried to fit as many on one line as possible instead.
Co-authored-by: Hielke Morsink <hielke.morsink@gmail.com >
2018-07-23 16:00:22 +02:00
clang-format
602aac47ba
clang-format drawing
2018-07-23 16:00:04 +02:00
Michael Steenbeek
1b08fb4e69
Replace our own integer types with standard ones
2018-06-20 17:30:40 +02:00
Michael Steenbeek
ec3a1e575e
Replace Math::Min and Max with std variants
2018-06-20 17:11:35 +02:00
Hielke Morsink
0cf256ac9e
Ready copyright notice for clang-format
...
Clang-format sees the text behind `#pragma region` as code and formats it. Instead of stating the copyright and date there, it's now in the comment block right below it. The text "Copyright" is left in the `#pragma region` line, as clang-format sees it as a single identifier.
I took the opportunity to normalize the dates, and add the copyright notice to the source files where it was missing them (except for third-party and the generated resources.h file).
2018-06-15 14:07:34 +02:00