Ted John
2fa0c7977a
add OpenGL drawing engine with FillRect impl
2016-06-07 22:45:36 +01:00
Ted John
d20a8a1daa
re-route draw sprite through IDrawingContext
2016-06-07 22:45:36 +01:00
janisozaur
68bad6505c
Add and correct licence headers to all sources ( #3108 )
2016-05-04 18:24:41 +01:00
Marijn van der Werf
0db00cdc75
Add helper function for retrieving g1 element
2016-03-03 14:33:08 +01: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
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
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
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
Michał Janiszewski
a911ff09d0
Some more checks, make sure gVehicleHierarchies are counted properly
2015-11-02 22:58:15 +01:00
Daniël Heres
9752d197e6
Fix assignment
2015-10-24 21:02:08 +02:00
Daniël Heres
3ebd576d78
Cache width of line
2015-10-24 18:25:11 +02:00
Daniël Heres
29976790cb
Low level optimizations
...
* Just memcpy if we don't have to use a pallete and zoom_amount == 1
* Replace some divide operations by right-shifts
* Optimize / simplify sub_68B3FB
2015-10-24 12:32:56 +02:00
Michał Janiszewski
06b13794ea
Use const for parameters
...
In profiling, gfx_rle_sprite_to_buffer turns out to be a hot spot. Use
const pointers, so compiler can make more assumptions regarding them and
perhaps optimize more heavily.
2015-10-22 10:15:45 +02:00
Michał Janiszewski
8e45cccb7a
Minor fixes
...
Includes (mostly) type fixes, dead code removal, signed vs unsigned
comparison fixes, memory leaks removal.
2015-10-21 08:47:09 +02:00
Michał Janiszewski
7d0ce00bab
Strip all whitespace
2015-10-20 20:48:51 +02:00
Daniël Heres
4f4f434c5a
Bit shifting
2015-10-19 22:55:16 +02:00
Daniël Heres
328c42d5d5
Use same naming convention
2015-10-19 20:50:52 +02:00
Daniël Heres
7730665023
Cache expression in gfx_rle_sprite_to_buffer
2015-10-19 20:45:04 +02:00
IntelOrca
bea74ee261
make all file IO utf8 compatible, fixes #1847
2015-08-29 13:13:23 +01:00
Gymnasiast
a6225ebf06
Add option to select by track type (RCT1 style); correct misspellings of 'separate'
2015-06-24 12:41:19 +02:00
Duncan Frost
8554d2183c
Implemented more of the paint_struct setup code
2015-06-21 16:23:23 +01:00
Miso Zmiric (Mike Squinter)
be98d6d850
closes #1305 , uses absolute paths for all file loads
...
edit and update the distribution readme
clean up the variables mess
improve the set_exe_path and cleanup
final fixes
2015-06-16 14:05:25 +01:00
Duncan Frost
499b5413f0
Fix graphical glitch when zoomed.
...
Fixes #1088 . I'm not completely sure why it works but it does.
2015-06-11 19:33:48 +01:00
IntelOrca
dc3fe2a6c8
remove commented out CALLPROCs and CALLFUNCs
2015-06-09 15:09:45 +01:00
IntelOrca
101fed0dd9
refactor g1Elements pointer and implement sub_68371D
2015-05-28 00:17:22 +01:00
IntelOrca
c1260fc11f
add command line sprite editor and additional custom graphics (g2.dat)
2015-05-19 00:26:31 +01:00
Timmy Weerwag
930a9d61dd
Fixes for a couple of warnings
2015-04-12 23:26:15 +02:00
Gericom
a64e89ec66
Refactoring window_construction_paint, fixed bugs
2015-02-27 12:49:22 +01:00
Duncan Frost
c3c8a73225
Fixed drawing issues when zoomed.
2014-12-28 13:29:26 +00:00
IntelOrca
335774dc08
add log level check so that --verbose option works
2014-11-21 18:39:56 +00:00
Duncan Frost
bfa2c6e010
Fix drawing crash mentioned in #428 . Could not exceed max attractions any more.
2014-11-18 19:51:28 +00:00
IntelOrca
b828f678b8
organisation: move wrongly categorised drawing functions and mark some addresses as obsolete
2014-10-07 19:53:21 +01:00
IntelOrca
c8df6174b8
organisation: fix includes
2014-10-06 17:36:58 +01:00