Hielke Morsink
9dd20ec619
Improve array formatting
...
For most of these cases, adding a trailing comma to the array block makes clang-format put each item on a new line, and clang-format exception blocks could be reduced where clang-format does not handle them properly.
2021-10-17 18:21:45 +02:00
ζeh Matt
911f168f8f
Mark two palettes thread_local for parallel drawing support
2021-10-06 17:28:37 +03: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
ζeh Matt
8fc7e06116
Move gLastStringPos into rct_drawpixelinfo ( #14811 )
2021-06-03 22:10:09 -03:00
Gymnasiast
7fd049c22e
Remove last remnants of gCurrentFontSpriteBase
2021-02-28 00:26:53 +01:00
Gymnasiast
2477933c51
Turn font sprite base into a strong enum
2021-02-28 00:23:00 +01:00
Michael Steenbeek
7274c6a7e7
Remove some unused symbols
2021-02-18 21:15:50 +01:00
ζeh Matt
9ff2138f3f
Remove unused variable gCurrentFontFlags
2021-01-30 16:46:22 +01:00
Łukasz Pękalski
4adf745237
Close #12403 : Refactor FILTER_PALETTE_ID to use strong enum ( #13273 )
2020-12-05 15:13:59 -03:00
Łukasz Pękalski
6e5105ab3b
refactor: ObjectType to use strong enum
...
enum renaming complete
2020-11-11 16:07:01 +01:00
Ted John
65e3d20156
Refactor drawing
2020-08-28 01:30:15 +01:00
Ted John
f51ad862c9
Refactor window drawing
2020-08-28 01:29:59 +01:00
Aaron van Geffen
7b5087f057
Update copyright year to 2020
2020-07-21 15:04:34 +02:00
frutiemax
bf2b8073cb
Part of #12096 : ScreenRect for gfx_fill_rect in libopenrct2 ( #12109 )
2020-07-08 14:07:26 -03:00
frutiemax
280a21fa30
Fix #12095 : Use ScreenRect on gfx_set_dirty_blocks ( #12106 )
2020-07-08 13:16:24 -03:00
annoyingdroid
ad86f7b023
Part of #12098 : Use ScreenRect on gfx_filter_rect ( #12120 )
...
* Added a gfx_filter_rect function using ScreenRect
2020-07-04 15:16:09 -03:00
frutiemax
4661262572
Fix #12085 : Use ScreenCoordsXY on clip_drawpixelinfo ( #12105 )
2020-07-02 14:06:28 -03:00
annoyingdroid
53e8816881
Close #12086 : Use ScreenCoordsXY on gfx_draw_pixel ( #12104 )
2020-07-02 12:10:37 -03:00
annoyingdroid
5056872676
Close #12087 : Use ScreenCoordsXY on gfx_filter_pixel ( #12102 )
2020-07-02 11:08:46 -03:00
TomasZilinek
cd6076b5bc
FIx #12017 - Create gfx_draw_sprite overload ( #12049 )
...
Second and final part. replaces the rest of the calls and removes the old function.
2020-06-24 12:48:17 -03:00
Ted John
28e4b6ba07
Add blend helper and strict param checking
2020-05-28 21:44:24 +01:00
Ted John
d3f7ec4844
Create new PaletteMap type to replace byte pointers
2020-05-28 20:00:23 +01:00
Michael Steenbeek
d7637cd70f
Replace many C-style casts ( #11720 )
2020-05-11 14:32:56 +02:00
frutiemax
c447cde63c
Close #11561 : Use ScreenCoordsXY in gfx_draw_string_centred_wrapped()
...
* Add gfx_draw_string_centred_wrapped overload using ScreenCoordsXY
* Update calls to gfx_draw_string_centred_wrapped
* Remove old signature of gfx_draw_string_centred_wrapped
* Meaningful coordinate variable names and constructor calls
2020-05-10 01:00:26 -03: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
583855d639
Add new ImageId struct
2019-08-24 17:30:39 +01:00
Ted John
f842d8a693
Fix #5103 : OpenGL: ride track preview not rendered
2019-05-02 00:07:43 +00:00
Matt
1153b97ace
Use thread_local to protect globals from data race
2019-03-31 17:15:15 +02:00
Aaron van Geffen
2af13904c5
Update copyright notices for 2019. ( #8903 )
2019-03-17 07:16:15 +00: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
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
Michał Janiszewski
3303246b09
Reduce header inclusions
2018-03-20 00:27:58 +01:00
Michał Janiszewski
ad27806534
Implement AVX2 masking
2018-02-12 22:24:22 +01:00
Ted John
4d8fe051e8
Remove most usages of object_entry_groups
2018-02-12 12:48:41 +00:00
Gymnasiast
778ba466c5
Remove almost every extern C block
2018-02-05 16:20:15 +01:00
Michael Steenbeek
cd5a1ba888
Compile files in world folder as C++
2018-01-11 13:25:09 +01:00
Michał Janiszewski
5a8cfb16c8
Clang-format guards for static data
...
This guards most of the hardcoded data from clang-format.
[ci skip]
2018-01-11 09:19:56 +01:00
Michał Janiszewski
77c4fa00bc
Use nullptr instead of NULL in C++
2018-01-07 21:43:37 +01:00
Ted John
c3eab7ead6
Refactor window.c to C++
2018-01-07 12:39:58 +01:00
Michael Steenbeek
755add6c9a
Compile localisation folder as C++
2018-01-06 18:32:25 +01:00
Ted John
3dcbebcf68
Refactor drawing.c to C++
2018-01-05 22:57:57 +01:00