1
0
mirror of https://github.com/OpenRCT2/OpenRCT2 synced 2026-01-22 06:23:04 +01:00
Commit Graph

151 Commits

Author SHA1 Message Date
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
IntelOrca
730463dbbb remove rct2_malloc, rct2_realloc and rct2_free 2016-01-14 20:18:55 +00:00
IntelOrca
b7484db239 refactor clip_drawpixelinfo to not allocate memory 2016-01-14 20:12:44 +00:00
Marijn van der Werf
e961cc885a Use RCT2_ADDRESS_COMMON_FORMAT_ARGS instead of raw address 2016-01-11 12:55:33 +01:00
Michał Janiszewski
2d82bf344e shadows for fonts 2016-01-07 15:48:52 +01:00
IntelOrca
9b833e5f93 shorten path for scenario select debug 2016-01-02 23:14:41 +00:00
Jonathan Haas
4d26e4c4a1 Refactor peep code
Name various fields and constants related to peeps. This includes:
  - Flags for flashing peeps in map window
  - Animation frames for picked up peeps
  - Function checking if peep should start to fall
  - Special sprite handling for slide boards and lawn mowers
  - Created array for peep sprite entries, renamed some variables and constants
2015-12-31 13:57:06 +01:00
IntelOrca
00e5c4418d refactor image IO to new source file 2015-12-30 13:36:09 +00:00
Aaron van Geffen
dd604afc89 Use FontConfig to find suitable TrueType fonts on Linux and OS X. Fixes #2537. 2015-12-25 01:53:52 +09:00
Aaron van Geffen
a0de23758e Specify font name on all TTF descriptors. 2015-12-25 01:53:52 +09:00
LRFLEW
e6f771ec90 Added newlines at end of files 2015-12-20 22:03:37 -06:00
IntelOrca
1ffc9a6355 fix problems with wooden_a_supports_paint_setup and refactor 2015-12-19 21:30:32 +00:00
IntelOrca
96b9a4ed18 implement wooden_a_supports_paint_setup 2015-12-19 20:11:04 +00:00
Michał Janiszewski
ea6fa2c82a Let user specify the data dir as cmdline option.
This adds --openrct-data-dir=<str> option to command line letting user
select where he wants OpenRCT2-specific data to be. By default the
search locations are:
* <exePath>/data (on all platforms)
* /var/lib/openrct2 (on Linux)
* /usr/share/openrct2 (on Linux)
2015-12-19 00:06:41 +01:00
Kyle Kirby
caf07c2064 Clean up the comments a litte
• Make comment heads be /**
• Make rct2 addresses be double spaced indented
• Make there be a space afte rct2: and the address
• Make single-line rct2 addresses be full block comments
• Move description of method to top of comment
2015-12-11 16:19:46 -06:00