1
0
mirror of https://github.com/OpenRCT2/OpenRCT2 synced 2026-01-29 17:54:50 +01:00
Commit Graph

583 Commits

Author SHA1 Message Date
Alib234
c7851983e4 Added missing #include for limits 2021-11-28 15:08:45 +01:00
ζeh Matt
c4ad5fcd15 Adjust includes 2021-11-26 21:01:44 +02:00
ζeh Matt
0024252328 Fix includes 2021-11-24 17:19:52 +02:00
Gymnasiast
af171d07e8 Use TitleCase in LightListEntry 2021-11-07 14:16:37 +01:00
Gymnasiast
bc3276dd43 Use CoordsXYZ in lightlist_entry 2021-11-07 14:13:08 +01:00
Michael Steenbeek
a1b70b59d6 Fix #15177: Crash in lightfx_add_lights_magic_vehicle() 2021-10-26 20:10:03 +02:00
Steve Blythe
b15dc66acb Part of #12098: Use ScreenRect in gfx_filter_rect() (#15603) 2021-10-20 19:43:32 -03:00
ζeh Matt
6f28f3e516 Backport ImageTable changes
Co-authored-by: Ted John <ted@brambles.org>
2021-10-20 16:50:38 +03:00
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
a0e7752f26 Pass rct_drawpixelinfo explicit to avoid races 2021-10-06 23:48:07 +03:00
ζeh Matt
911f168f8f Mark two palettes thread_local for parallel drawing support 2021-10-06 17:28:37 +03:00
ζeh Matt
6ad4150085 Introduce rendering engine flag for parallel drawing 2021-10-06 17:15:40 +03:00
Soham Roy
4d27417fd2 Fix #11354: Coding style causes undefined behaviour
An underscore followed by a capital letter used as a prefix might cause
undefined behaviour
2021-10-05 13:58:50 +02:00
Hielke Morsink
429e34d7f3 Make uses of window_get_main use (const) auto* 2021-09-30 14:36:06 +02:00
Hielke Morsink
94144bcd89 Remove some dead code
Reported by clang
clang-analyzer-deadcode.DeadStores
2021-09-30 10:40:32 +02:00
Hielke Morsink
ba74393a43 Remove pointless return statement 2021-09-29 22:39:34 +02:00
Hielke Morsink
c234abfbb8 Fix #15213: Freeze when reading a partially cut unicode character 2021-09-27 15:03:25 +02:00
Hielke Morsink
e88f96a15c Move StaticLayout out of header file 2021-09-27 14:56:37 +02:00
Hielke Morsink
53c22c9b4b Check for nullptr explicitly (#15458) 2021-09-24 20:05:50 +02:00
ζeh Matt
74e8988dd8 Remove scenario ticks and adjust export/import
Co-authored-by: Ted John <ted@brambles.org>
2021-09-23 21:49:09 +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
b733e97bfa Remove numerics from common.h and use it as needed 2021-09-11 20:21:08 +03:00
Gymnasiast
e26c4bdd4e Fix US spelling 2021-09-05 20:40:01 +02:00
zrowny
c381a97d66 Fix ImageImporter for colors outside of palette (#14649:)
When converting to the internal palette, if a color is not in the palette, the ImageImporter now re-maps it only to those non "special" color indices ("special," meaning those for water effects, font, chain lift and so on, as well as the primary remappable color).

Additionally, if the Importer is told to dither the image, it now does not dither colors that are already in the OpenRCT2 palette, or dither between remappable colors and non-remappable colors.
2021-09-05 20:08:00 +02:00
zrowny
c4aaae1a07 Correct ImageImporter palette index 255 to white
Reflects the change that was made in 5035492f8c to the renderer to fix #1749 and #6535
2021-09-05 20:08:00 +02:00
zrowny
2d34fe3972 Update description of palette colors in ImageImporter 2021-09-05 20:08:00 +02:00
Michael Steenbeek
ef2477901e Merge pull request #15278 from Gymnasiast/fix/3868-opengl-ttf
Get basic TTF support working in OpenGL
2021-08-27 02:00:45 +02:00
Ted John
6e2b79a895 Get basic TTF support working in OpenGL
co-authored-by: Michael Steenbeek <m.o.steenbeek@gmail.com>
2021-08-26 19:46:18 +03:00
ZehMatt
de364aa15a Rename type SpriteBase to EntityBase 2021-08-26 15:37:16 +03:00
ZehMatt
8fa4823055 Pass rct_drawpixelinfo as explicit argument, make DrawSpriteArgs const 2021-08-25 15:37:44 +03:00
Hielke Morsink
956e77f4c3 Use [[nodiscard]] for allocator and RAII functions (#15244) 2021-08-23 20:09:43 +02:00
Hielke Morsink
15d3a4a9da Update more include guards (#15254) 2021-08-21 12:55:28 +02:00
Michael Steenbeek
f5935931e3 Port remaining DrawTextWrapped calls with void args to Formatter 2021-08-21 09:42:05 +02:00
Duncan
940cab87d3 Map size refactors from NSF (#15112)
* Support large map sizes

* Fix top spin painting

* Fix crooked house

* Increase bb size

* Decrease limit back

* Clang format

* Remove asserts and apply review comments

* Fix rebase mistake

Co-authored-by: Ted John <ted@brambles.org>
2021-08-16 20:51:16 +01:00
Michael Steenbeek
385c9ee5ff Fix #15184: Crash when hovering over water types in Object Selection 2021-08-11 17:51:20 +02:00
Gymnasiast
676ef7205e Change all calls to DrawTextBasic to use Formatter 2021-08-01 15:14:43 +02:00
Michael Steenbeek
2a9481bb99 Add Œ ligature 2021-07-20 14:28:43 +02:00
Michael Steenbeek
3bb15d9067 Support drawing em-dashes
These are used in the French translation.
2021-07-20 13:34:22 +02:00
WantDiscussion
06026ec55e Improvement: Added lighting effects for shops and stalls. (#14169)
* Improvement: Added lighting effects for shops and stalls.

* Moved offset rotations for lights to declaration.

* - Made function variables Const&, Const

- Fixed casing

- Removed direction variable from kiosk function

- Moved kiosk light offset rotation to declaration

* Ensure defines are only set for given target with cmake

Co-authored-by: Michał Janiszewski <janisozaur@gmail.com>
2021-06-30 07:55:02 +01:00
ζeh Matt
8fc7e06116 Move gLastStringPos into rct_drawpixelinfo (#14811) 2021-06-03 22:10:09 -03:00
Duncan
39fcc5d078 Split up Sprite header (#14764)
* Remove fields from rct_sprite union

* more header fun

* Fix guest include
2021-05-29 06:01:32 +01:00
zrowny
f6f5b41b76 Correct palette indexes of remap colors in image importer
The codes that finds the closest entry that isn't used for remapping has the indices of remappable colors slightly off, and would make some colors in the imported image remappable even though they shouldn't have been.

Comment in header file describing the standard palette corrected as well.
2021-05-13 16:30:35 +02:00
frutiemax
0ac77f8744 Part of #12100 : Use ScreenCoordsXY for gfx_draw_line_on_buffer (#14305) 2021-05-11 08:16:59 -03:00
A.N
4d3328c7bb Add preprocessor directives to stop unused variable/function warnings. (#14422) 2021-04-02 14:41:11 +02:00
Tulio Leao
bb8c275df6 Remove raw coords gfx_fill_rect_inset overload 2021-03-29 09:34:11 -03:00
Tulio Leao
2d1557e48e Merge pull request #13444 from tupaschoal/extract-ifdefed-functions
Extract ifdefed functions
2021-03-27 10:00:01 -03:00
Tulio Leao
e23eaa164b Extract RequireNewWindow to Platform 2021-03-26 23:17:01 -03:00
Michael Steenbeek
a5a63f839a Allow passing ImageId into gfx_draw_sprite() 2021-03-23 11:58:09 +01:00
frutiemax
cd9873a78d Use ScreenLine on gfx_draw_line_software 2021-03-13 16:52:58 +01:00