Commit graph

11740 commits

Author SHA1 Message Date
Ted John
d45a50274c Replace SDL with normal fopen in cmdline_sprite.c 2017-05-29 22:38:44 +02:00
Ted John
08ae74293d Remove a few more SDL calls from core library 2017-05-29 22:38:44 +02:00
Ted John
cf0dcb4753 Refactor file / directory dialogs to UiContext 2017-05-29 22:38:43 +02:00
Ted John
3fcd42fe2b Move more window code to UiContext 2017-05-29 22:38:43 +02:00
Ted John
a020a9fbef Fix premature deletion of platform context 2017-05-29 22:38:43 +02:00
Ted John
0440c3deea Clean up audio.cpp 2017-05-29 22:38:43 +02:00
Ted John
e426c70bbc Get moved audio code linking 2017-05-29 22:38:43 +02:00
Ted John
d206d181f2 Move audio code to UI project 2017-05-29 22:38:43 +02:00
Ted John
175606ae52 Create new audio context interface 2017-05-29 22:38:43 +02:00
Ted John
bd9839ff50 Get the game working
Mostly just needed to resolve screen size which is now retrieved via ui context.
2017-05-29 22:38:43 +02:00
Ted John
7163973bd2 Start moving code from OpenRCT2 to Context 2017-05-29 22:38:42 +02:00
Ted John
9d24e47e6f Fix build 2017-05-29 22:38:42 +02:00
Ted John
f736e8ff96 Move more platform code to UiContext 2017-05-29 22:38:42 +02:00
Ted John
5885cb646f Start moving window logic to UI project 2017-05-29 22:38:42 +02:00
Ted John
6375e01f3f Add VS project for CLI only build 2017-05-29 22:38:42 +02:00
Ted John
10182879da Invert Context and UiContext dependencies 2017-05-29 22:38:42 +02:00
Ted John
06bba09b43 Fix various issues with the cmake projects 2017-05-29 22:38:42 +02:00
Ted John
c7b1feea07 Add back most of the cmake options 2017-05-29 22:38:42 +02:00
Ted John
89780363ee Add openrct2-ui cmake project 2017-05-29 22:38:42 +02:00
Ted John
f856510a15 Get openrct2-cli linking successfully 2017-05-29 22:38:42 +02:00
Ted John
644634220a Update cmakelists for lib and cli 2017-05-29 22:38:42 +02:00
Ted John
fedb8917c7 Create new CMake project for libopenrct2 2017-05-29 22:38:42 +02:00
Ted John
5c59b743fd Add new CLI and UI builds for non Windows platforms 2017-05-29 22:38:42 +02:00
Ted John
006a76c099 Refactor registration of drawing engines 2017-05-29 22:38:42 +02:00
Ted John
bf3749833d Allow drawing engine registration via context interfaces 2017-05-29 22:38:42 +02:00
Ted John
c7b66ab193 Fix includes for moved files 2017-05-29 22:38:41 +02:00
Ted John
19aafc4e24 Move drawing engine implementation code to openrct2-ui 2017-05-29 22:38:41 +02:00
Ted John
9c904db1c3 Add UI src project 2017-05-29 22:38:41 +02:00
wolfreak99
3d50ab56c8 Support mouse dragging when selecting ride design scenery
Define nearby scenery distance, support mouse dragging when selecting/deselecting ride design scenery
2017-05-29 22:34:33 +02:00
Marijn van der Werf
eaf93430d5 Remove some string additions 2017-05-28 19:49:32 +02:00
OpenRCT2 git bot
26196c62c3 Merge Localisation/master into OpenRCT2/develop. 2017-05-28 04:00:23 +00:00
Ted John
3444cbd00a Merge pull request #5510 from ceeac/memleaks
Fix memory leaks
2017-05-27 10:28:45 +01:00
ceeac
e3fc430bfc Add myself to contributors 2017-05-26 18:21:50 +02:00
ceeac
eeac581857 Fix memory leak when closing Title Sequence handle.
The handle is now invalid after calling TitleSequenceCloseParkHandle().
2017-05-26 18:21:50 +02:00
ceeac
f58d711981 Fix memory leak in Path::getDirectory. 2017-05-26 18:21:50 +02:00
ceeac
daeeb5f827 Fix memory leak when adding title sequence.
The constructor of std::string already duplicates the string.
2017-05-26 18:21:50 +02:00
ceeac
bed408ef3f Fix memory leak when loading title sequence.
The buffer for loading the title sequence script was allocated but not free'd
2017-05-26 18:21:50 +02:00
Daniel Kamil Kozar
a64e08f997 Don't flash the white frame around network status windows
This commit turns off the white border for all network status windows. This is
mostly evident when downloading a map from the server before starting a
multiplayer game, as the window is repeatedly brought to the front with a white
border. This results in needlessly flashing the border, since
window_network_status_open is called for every chunk of data received from the
network socket.
2017-05-26 15:58:54 +02:00
OpenRCT2 git bot
dabaddd4cf Merge Localisation/master into OpenRCT2/develop. 2017-05-26 04:00:23 +00:00
Richard Jenkins
2f9f613201 Fix #3178: Precompose file name strings on macOS to prevent mojibake when displayed
* Precompose file name strings on macOS to prevent mojibake when displayed

* Ensure decomp-to-precomp string replacement is handled safely

* Add macOS non-ASCII handling to changelog; add comments to relevant block

* Fix #ifdef alignment

* Fix comment alignment
2017-05-23 09:30:13 +02:00
OpenRCT2 git bot
0728e6869b Merge Localisation/master into OpenRCT2/develop. 2017-05-23 04:00:22 +00:00
Richard Jenkins
493bb62457 Guard against null pointer in macos_str_decomp_to_precomp() 2017-05-22 14:28:56 +02:00
Gymnasiast
ab75b8db84 Properly check separate flags when scanning objects and building track list, fixes #3681 2017-05-21 12:19:42 +02:00
Marijn van der Werf
53b023612d Show uses of raw palette indices 2017-05-21 00:01:45 +02:00
wolfreak99
bd7bf49c8d Fix - trim invalid land size when setting land ownership 2017-05-19 23:26:59 +02:00
OpenRCT2 git bot
eca9ef09b5 Merge Localisation/master into OpenRCT2/develop. 2017-05-19 04:00:25 +00:00
OpenRCT2 git bot
d699c8038e Merge Localisation/master into OpenRCT2/develop. 2017-05-18 04:00:21 +00:00
Gymnasiast
d4bb9c38c9 Delete unused file 2017-05-17 22:57:23 +02:00
Gymnasiast
09f0425c2f Unify River Rafts and Splash Boats drawing code 2017-05-17 20:49:07 +02:00
Hielke Morsink
bfa03583fa Apply window themes only when created or when the selected theme is changed 2017-05-17 13:19:42 +02:00