1
0
mirror of https://github.com/OpenRCT2/OpenRCT2 synced 2026-01-17 12:03:07 +01:00
Commit Graph

165 Commits

Author SHA1 Message Date
Ted John
8d4e4ed0e9 remove unread RCT2_GLOBALs 2016-05-17 23:39:37 +01:00
Ted John
975eacc5f9 add temp RCT2 memory copy for scrolling text paint
Fixes #3628: assertion
Fixes #3634: wrong queue banner text

Until path_paint is implemented, this variable is used by scrolling_text_setup to use the old string arguments array. Remove when scrolling_text_setup is no longer hooked.
2016-05-16 18:44:44 +01:00
Ted John
cbf9a393f1 remove use of get_format_arg
Because of strict aliasing, we must use memcpy in some cases.
2016-05-15 22:40:25 +01:00
Ted John
1cc35dfe6e integrate common format args 2016-05-15 22:03:53 +01:00
Hielke Morsink
8c1395bd46 declaring local variables where needed instead of at the top (#3599) 2016-05-15 10:25:24 +01:00
janisozaur
ca430e1b23 Drop unused variables (#3586) 2016-05-13 18:21:58 +01:00
janisozaur
658e877955 Name all the typdef-ed structs (#3581) 2016-05-12 22:57:40 +01:00
Ted John
5ccfd83dea add global macro for gScenarioTicks 2016-05-08 23:20:42 +01:00
duncanspumpkin
7f02193411 Move around map element and sprite functions into seperate files
Add dummy files for big file move around

Fix files so they can compile

Add copyright header

Split up functions into seperate files

Remove suffix

Move supports again

Change functions signatures to remove viewport_setup

Rename folder structure

Finish moving about files
2016-05-05 21:41:53 +01:00
janisozaur
68bad6505c Add and correct licence headers to all sources (#3108) 2016-05-04 18:24:41 +01:00
Ted John
7be699adbb fix mistake, wrong enum 2016-04-25 23:20:54 +01:00
Ted John
489ea66cc9 add global macro for gCurrentFontSpriteBase and gCurrentFontFlags 2016-04-25 23:00:58 +01:00
Ted John
870a8b55e5 add global macros for viewport variables 2016-04-25 21:53:21 +01:00
Ted John
0a80e7a737 integrate pickup peep variables 2016-04-24 10:28:08 +01:00
Ted John
e7f62bf014 integrate game palette variables 2016-04-24 02:02:56 +01:00
Ted John
a97533228c integrate window DPI variable 2016-04-24 01:40:55 +01:00
Ted John
19662a091c integrate rain drawing variables 2016-04-24 01:39:33 +01:00
Ted John
98f732aaf7 integrate screen variables (#3411) 2016-04-24 00:36:39 +01:00
Duncan
d408cf4eea Metal a support (#3405)
* Implement start of metal a supports

* Finish implementing metal a supports

* Fix bugs.
2016-04-23 10:58:23 +01:00
Ted John
3bd21240ed add global macros for climate variables 2016-04-23 10:53:48 +01:00
Marijn van der Werf
7728a96e96 Update signature 2016-04-22 14:05:51 +02:00
Marijn van der Werf
6e3375a3d4 Small fixes 2016-04-18 21:18:48 +02:00
Duncan
0860cf4540 Merge pull request #3299 from marijnvdwerf/paint-setup/cleanup
WIP Paint setup/cleanup
2016-04-18 18:48:53 +01:00
Marijn van der Werf
d78077ce22 Convert method call to sub_98197C 2016-04-18 15:34:06 +02:00
Marijn van der Werf
eabbdb7e30 Identify structure members 2016-04-17 10:31:50 +02:00
Marijn van der Werf
18a36298b4 Update method signature 2016-04-17 09:42:34 +02:00
IntelOrca
89ad0cc769 store windows in openrct2 memory and increase max
Allocate a bigger window list and viewport list in OpenRCT2 static memory and move over all references from RCT2.
This also removes the 'active' viewport pointer list and instead changes everything to just enumerate the whole viewport list
2016-04-14 23:00:35 +01:00
Marijn van der Werf
3bb2214235 Pass 0x009DEA52-0x009DEA56 as parameters 2016-04-14 11:07:41 +02:00
Marijn van der Werf
e529532ddd Add parameters to sub_98198C 2016-04-14 10:02:17 +02:00
Duncan
945f9ddc8e Merge pull request #2994 from marijnvdwerf/decompile-679074
Decompile sub_679074
2016-04-13 12:37:57 +01:00
duncanspumpkin
9018120c17 Change order of parameters in image setup code. 2016-03-25 18:35:00 +00:00
IntelOrca
2cd7f2d507 fix warning 2016-03-04 23:12:52 +00:00
Marijn van der Werf
0db00cdc75 Add helper function for retrieving g1 element 2016-03-03 14:33:08 +01:00
Chanwoong Kim
4596285ec2 Make 'draw_string_centered_raw' to support UTF8 strings. 2016-03-02 07:48:58 +09:00
duncanspumpkin
70f38aa68f Fix support drawing issue 2016-02-29 19:54:05 +00:00
duncanspumpkin
24df65af9d Label current paint tile max height 2016-02-29 18:04:48 +00:00
Michał Janiszewski
c4cf41de45 Only enable assert() in drawing code when explicitly debugging 2016-02-28 21:42:08 +01:00
Alexander Overvoorde
1d81105f3b Fix presets from old vehicle type being used for new vehicle type (fixes #3014) 2016-02-28 18:21:04 +01:00
Michał Janiszewski
6b514d1e3a Fix possible issues highlighted at higher warn levels
Mostly possibly uninitialized values and signedness
2016-02-26 12:54:00 +01:00
Michał Janiszewski
60d01a3ddf More optimizations to drawing code 2016-02-23 17:33:54 +01:00
Michał Janiszewski
2744db77d9 Prefer masking over multiplication in rendering code 2016-02-22 15:54:46 +01:00
Michał Janiszewski
0e42bef94e Trade control-flow dependency for data-dependency
Removes branching in drawing code
2016-02-22 09:30:15 +01:00
Michał Janiszewski
aaf572ab27 Fix fastcall for non-MSVC toolchains 2016-02-20 13:41:44 +00:00
IntelOrca
3edc5c6f0a compile multiple versions of draw RLE sprite 2016-02-20 13:41:43 +00:00
IntelOrca
4617a52e53 improve dirty block performance 2016-02-20 00:23:58 +00:00
Michał Janiszewski
f352fb7d47 Better options window design for scaling 2016-02-01 21:23:20 +01:00
LRFLEW
a842e3a650 Improved Rendering of Disabled Scenario Names 2016-01-24 17:06:05 -07:00
IntelOrca
d81fd0c4ea fix #2786: use gfx_draw_string_centred_wrapped which centres line by line 2016-01-23 00:24:02 +00:00
Michał Janiszewski
3bf1e0e06d Rename safe_strncpy to safe_strcpy 2016-01-18 20:49:52 +01:00
Michał Janiszewski
836343b194 Unload graphics when done 2016-01-15 19:19:10 +01:00