Gymnasiast
14f9a75e0a
Refactor FontSpriteBase and font size into FontStyle
2022-10-19 11:59:26 +02:00
Hielke Morsink
0ca7bb058f
Rename public font config data members
2022-10-16 21:46:07 +02:00
Hielke Morsink
abac080d3e
Rename public general config data members
2022-10-16 21:46:01 +02:00
Rik Smeets
c80bd455e9
Code style: Remove struct snakes from Paint ( #18341 )
2022-10-14 20:26:36 +02:00
Michael Steenbeek
6fe19878f6
More ImageId cleanup ( #18258 )
...
* Remove more usages of uint32 image indices
* Remove unused gfx_get_sprite_size()
* Remove uint32 images from text drawing
* Remove now-unused ImageId overload
* Default-initialise ttfRunIndex
* Suppress false-alarm GCC error
2022-10-10 19:42:40 +01:00
73
b9e677945d
Replace 20XX with 2022 ( #18158 )
...
* Replace 2020 with 2022
Replace all 2020 headers with 2022
* replace other years with 2022
add missing years
2022-10-01 08:42:14 +01:00
Gymnasiast
a69a8fa7e8
Remove uint32_t overloads in Paint functions
2022-09-29 21:17:16 +02:00
Gymnasiast
d3fd31c611
Rename rct_string_id to StringId
2022-07-31 22:30:13 +02:00
jazzysoggy
f77611dcd2
Fix #17229 : Rename G1_FLAG_BMP to G1_FLAG_HAS_TRANSPARENCY ( #17441 )
...
* Renamed All Instance of G1_FLAG_BMP
Renamed all instances of G1_FLAG_BMP to GA_FLAG_HAS_TRANSPARENCY
* Fixed comments and labels
Fixed comments and labels to be more in line with new definitions
2022-06-25 07:04:40 +01:00
frutiemax
adb692b74e
Forward declare Formatter
2021-12-30 12:17:51 -05:00
Michael Steenbeek
25cb49f8ce
Pass paint_session as reference
2021-12-19 14:48:00 +00: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
Gymnasiast
2477933c51
Turn font sprite base into a strong enum
2021-02-28 00:23:00 +01:00
Matt
5bbc07847c
Remove unused field
2021-01-02 16:43:17 +02:00
Matt
474ed67696
Initialize scrolling text sprites without a copy from original
2021-01-02 16:43:17 +02:00
Matt
95551b0504
Use correct type
2021-01-02 16:43:17 +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
Ted John
b6a688e540
Refactor format tokens
2020-11-27 18:54:57 +00:00
Ted John
c6152efa4e
Fix scrolling text
2020-11-27 18:54:56 +00:00
Duncan
cd1d573c39
Pass the formatter directly to scrolling_text_setup
2020-07-31 12:31:26 +02:00
Aaron van Geffen
7b5087f057
Update copyright year to 2020
2020-07-21 15:04:34 +02:00
frutiemax
f86931d8a0
Close #12019 : Use ScreenCoordsXY on gfx_draw_sprite_software
2020-06-22 23:52:54 +02:00
Michael Steenbeek
9ef8d6da42
Convert most remaining C-style casts to C++-style ones ( #11867 )
2020-06-07 23:18:11 +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
d34dec9c27
Create ZoomLevel struct to add two new zoom levels
2020-03-23 15:54:03 +00:00
Tulio Leao
9123b597a9
Use constexpr on openrct2/*
2019-10-29 18:44:14 -03: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
a57a4f2059
Fix #9724 : Park/Ride entrance/exit sign's colour is weird
2019-08-04 17:04:12 +01:00
Ted John
b7121553b4
Fix #9715 : large scenery banners have incorrect colour and scrolling ( #9716 )
2019-08-02 21:18:42 +02:00
Ted John
61d64ab8c5
Do not use user strings for banners
2019-07-29 19:18:16 +01:00
Michał Janiszewski
83e26804e5
Limit scrolling text colour to valid options ( #9639 )
2019-07-27 14:23:34 +02:00
Ted John
5733d666b3
Do not store park name as a user string
2019-07-21 11:33:15 +02:00
Ted John
f842d8a693
Fix #5103 : OpenGL: ride track preview not rendered
2019-05-02 00:07:43 +00:00
Matt
4e264bd45d
Use mutex to protect scrolling banner cache from data race
2019-04-02 20:14:50 +02:00
Matt
37c3809744
Implement partial multicore rendering
2019-03-31 15:50:55 +02:00
Aaron van Geffen
2af13904c5
Update copyright notices for 2019. ( #8903 )
2019-03-17 07:16:15 +00:00
ζeh Matt
7d19a5bc77
Refactor memcpy to std::memcpy and memset to std::memset ( #8408 )
2018-12-15 22:23:31 +01:00
ζeh Matt
e5eb61d38d
Fix scrolling banners drawing invalid text
2018-10-23 19:44:14 +02:00
clang-format and Hielke Morsink
95ce592579
Enforce not breaking before assignments and function names
...
Co-authored-by: Hielke Morsink <hielke.morsink@gmail.com >
2018-07-23 16:00:19 +02:00
Hielke Morsink
9bfa8bdbe8
Apply format on new/updated code before rebase
2018-07-23 16:00:17 +02:00
Hielke Morsink
472320d8f3
Correct formatting up to the management folder
...
I went over the commits ab7f22f..8726712 (bulk format commits for game actions to management inclusive) and corrected all mistakes I found. Most of them have to do with arrays missing trailing commas, making clang-format indent the entire array or not add breaks between the values.
2018-07-23 16:00:15 +02:00
clang-format
602aac47ba
clang-format drawing
2018-07-23 16:00:04 +02:00
Michael Steenbeek
5fdc4637cd
Add drawing code for new sprite glyphs
2018-07-20 17:33:20 +02:00
Michael Steenbeek
1b08fb4e69
Replace our own integer types with standard ones
2018-06-20 17:30:40 +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
ζeh Matt
ee56021067
Minor code cleanup. ( #7538 )
2018-05-18 22:50:57 +02:00
Hielke Morsink
6c65c3d64d
Merge pull request #6774 from janisozaur/fixes
...
Various code improvements
2018-05-15 14:38:43 +02:00