1
0
mirror of https://github.com/OpenRCT2/OpenRCT2 synced 2026-01-24 07:14:31 +01:00
Commit Graph

342 Commits

Author SHA1 Message Date
Michał Janiszewski
f1cbb7935d Fix left shifts that may overflow 2016-10-13 19:48:42 +01:00
LRFLEW
e5ff7412e4 Refactor/Improve String and Path Handling 2016-10-09 15:29:58 -05:00
Michał Janiszewski
9966052ca7 Fix more configurations 2016-10-06 23:32:10 +02:00
Ted John
ebd12bde83 Fix #4537: Park with object containing no images fails to load
Allow gfx_object_allocate_images to take 0 images and return INVALID_IMAGE_ID which will safely not be freed.
2016-10-05 21:47:02 +01:00
Michał Janiszewski
71d0861be1 Mark classes as final
This may hint compiler to de-virtualise some calls.
2016-10-04 18:14:29 +01:00
Ted John
305e6184f8 Try merging free image lists if failed to allocate one 2016-10-02 01:10:43 +01:00
Ted John
ff34967e9b Ensure all images are freed, fix leak 2016-10-02 00:44:07 +01:00
Ted John
b18d053a18 Fix #4511: Crash, invalid scrolling mode for banner
Do not attempt to draw banners with an invalid scrolling mode. Some custom objects use 255 for scrolling mode as they don't actually have scrolling text.
2016-10-01 17:33:30 +01:00
Michael Steenbeek
a170eeb367 Merge pull request #4302 from wolfreak99/render_rain_toggle
Add option to disable weather gloom and rain effects
2016-09-24 13:17:49 +02:00
Ted John
5c5e9095db Fix #4476: Assertion Failed
Disable track preview for OpenGL drawing until a later time where we can use a different drawing engine for track preview alongside OpenGL.
2016-09-24 01:07:40 +01:00
Ted John
4a0a93d003 Merge pull request #4449 from duncanspumpkin/gl2
OpenGL Palettes
2016-09-23 21:41:09 +01:00
duncanspumpkin
48086503a6 Fix zooming size for opengl sprites 2016-09-21 19:06:45 +01:00
wolfreak99
c60396cb53 Add option to disable weather gloom and rain effects 2016-09-21 10:35:02 -04:00
duncanspumpkin
9840a73cc1 Refactor naming of paint global vars
Removed EDF81C from none viewport files this previously was used to pass image flags to the sprite renderer.
gUnkF1A4CC replaced with address reference to paint struct array to allow for non rct builds
Renamed _paint_structs to _paint_struct_quadrants. This array is used for working out which paint struct is at which quadrant and is not the main paint struct array
2016-09-20 18:08:45 +01:00
duncanspumpkin
56fddac199 Fix broken zoomed textures and palettes
Zoomed textures were failing to pass the image flags to the zoomed version of the texture. This would cause corrupted data to be passed as a tertiary colour to the palette function.
Also due to not recording the image flags in the palette hash map a tertiary colour of zero would be ignored and unremaped pink colour would be shown
2016-09-19 19:00:26 +01:00
duncanspumpkin
5f7a6fb369 Fixed OpenGL palette drawing
Added palettes to the texture atlas and now correctly use them to generate
images. Transparency semi supported but the colours are not quite
correct.
2016-09-18 20:28:46 +01:00
Marijn van der Werf
487d6d8f15 Remove unnecessary addresses.h imports 2016-09-17 20:59:55 +01:00
Ted John
375069384b Fix x64 builds 2016-09-17 16:35:19 +01:00
Ted John
c183b65065 Fix original paint mode 2016-09-17 16:32:36 +01:00
Ted John
4f34accfea Integrate _spriteFontCharacterWidths 2016-09-17 16:07:34 +01:00
Ted John
c9fd1e66ef Remove 0x8000000 fill rect flag from software renderer
It was never ever hit and probably didn't work properly.
2016-09-14 18:35:44 +01:00
Ted John
e4cb01e04b Integrate gUnkEDF81C 2016-09-14 18:29:56 +01:00
Duncan
00e2d44264 Refactor sprite functions 2016-09-14 18:22:37 +01:00
LRFLEW
e1b6319bc1 Fix Warnings in Xcode about Copy Elision 2016-09-13 18:07:40 -05:00
Manuel Vögele
f7caa55ee1 Defer instantiation of TextureCache until OpenGL is initialized
If TextureCache is instantiated before OpenGL is initialized and
something goes wrong during OpenGL initialization the destructor of
TextureCache calls an OpenGL function which will cause the application
to crash.
2016-09-13 18:46:26 +02:00
Manuel Vögele
6486c4f6ea Show exception messages when initializing a drawing engine fails 2016-09-13 18:28:44 +02:00
Ted John
44214ab2b8 Integrate gCurrentFont fully 2016-09-12 20:43:43 +01:00
Ted John
5db4f4f2ee Remove references to 0x009C383D 2016-09-10 23:48:29 +01:00
Ted John
fe7800a508 Integrate _drawScrollTextList and _characterBitmaps 2016-09-10 23:42:19 +01:00
Ted John
17198cfdb2 Integrate gTrackDesignSaveMode 2016-09-10 18:03:25 +01:00
Ted John
d12804b242 Show message boxes if unable to load g1 / g2 2016-09-10 12:45:33 +01:00
Michał Janiszewski
2759772fca Cleanup in SoftwareDrawingEngine::DisplayViaTexture 2016-09-09 20:00:06 +01:00
Michał Janiszewski
163e314379 Remove unused or set-but-not-read variables 2016-09-07 13:39:29 +01:00
Ted John
00bfe1befb Use RCT2_ADDRESS macro so mmap works correctly 2016-09-06 00:10:58 +01:00
Ted John
6a665330c2 Integrate gCommonStringFormatBuffer 2016-09-04 15:55:37 +01:00
Ted John
d24010b1b5 Add dead code check in FillRect 2016-09-04 00:22:56 +01:00
Michał Janiszewski
f8145b6edc Refactor inclusion of addresses.h
addresses.h is now only included when necessary, limiting scope as much
as possible.
2016-09-03 21:25:19 +01:00
Michał Janiszewski
599b092487 Conditionally integrate some variables 2016-09-03 18:40:23 +01:00
Duncan
755aa48712 Add deadcode asserts 2016-09-03 18:35:07 +01:00
Ted John
8cf7e87b5c Fix many warnings for x64 2016-08-27 23:32:15 +01:00
Marijn van der Werf
bdb04e3da3 Integrate data at 0x009DEDF4 2016-08-21 14:24:55 +02:00
Marijn van der Werf
5a03c6b129 Integrate palettes 2016-08-21 13:53:31 +02:00
Marijn van der Werf
9319bee91f Use already integrated data 2016-08-20 22:12:52 +01:00
Marijn van der Werf
30fd2160d7 Integrate data at 0x0097FEFC 2016-08-14 11:37:59 +02:00
Michael Steenbeek
7f71bece5c Clean up some residual usage of non-integrated versions of already integrated variables 2016-08-13 10:52:42 +01:00
YJSoft
4117e9a9e5 fix #4251 Banner font is black when using ttf font (#4272) 2016-08-13 10:29:04 +02:00
Marijn van der Werf
198ebd0cb1 Use constants for colours 2016-08-07 12:57:12 +02:00
Michał Janiszewski
0ece63a7f6 Wrap RCT2's addresses in RCT2_ADDRESS macro 2016-08-06 21:38:46 +01:00
Ted John
252a00c35f Integrate gCurrentWindowColours 2016-08-06 01:32:40 +01:00
Ted John
c3fdb99ceb Merge pull request #4199 from marijnvdwerf/clean/sprite-ids-1
Cleanup sprite ids
2016-08-05 17:30:03 +01:00