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

43 Commits

Author SHA1 Message Date
Ted John
5614e55f84 Remove more redundant platform functions 2017-07-16 23:25:11 +01:00
William Wallace
ae110a9159 Allow switching between OpenGL and other renderers without restarting 2017-07-13 19:04:37 +01:00
ζeh Matt
ec236f0bf5 Fix platform_get_ticks resolution to match other platforms. (#5843) 2017-07-10 21:46:11 +02:00
Marijn van der Werf
8766ec37a1 Add Android project 2017-06-15 14:22:15 +02:00
Ted John
36cfc1bb29 Remove remaining SDL from platform code 2017-06-11 23:26:14 +01:00
Ted John
ee7c97b7be Move scancode to key to openrct2ui 2017-06-11 23:22:32 +01:00
Ted John
dfa1b47a4f Move keyboard shortcut code to libopenrct2ui. 2017-06-11 16:52:15 +01:00
Ted John
202cc269a7 Remove more SDL stuff from old platform code 2017-06-10 17:14:07 +01:00
Michał Janiszewski
61d38511bc Expand tabs to spaces
This commit expands tabs to spaces (ts=4) in all the files under src/
and test/.

Until now we had two wildly different code styles with C using tabs and
new C++ using spaces. It is painful to maintain as none of the commonly
used tools support this kind of setup and in reality is needless, as we
can simply convert all the sources to spaces and have opened PRs do the
same, where needed.

Additionally, trailing whitespace has been removed.
2017-06-06 23:46:14 +02:00
Ted John
94e982289e Fix openrct2-cli build
By using a dummy audio context, we can now make openrct2-cli start a headless instance without any SDL2 calls. SDL2 is still a dependency until we remove out the input code to openrct2-ui.
2017-06-04 00:18:26 +01:00
Michał Janiszewski
79d76759bb Fix #5516: Update copyrights for 2017
Not all files were necessarily _changed_, but all were touched, see
https://github.com/OpenRCT2/OpenRCT2/pull/4932
2017-06-01 21:55:10 +02:00
Richard Jenkins
e8ec7ee58f Implement building of libopenrct2 and OpenRCT-UI for macOS
Initial setup of xcode for multiple targets

libopenrct2 partially working

Restore macOS mach_info init

Get macOS OpenRCT2-ui working if hackish

Implement UiContext for macOS properly

Put tabbing cancellation code back
2017-05-29 22:38:45 +02:00
Ted John
e2a7189663 Do not use SDL_Colour for gPalette 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
3fcd42fe2b Move more window code to UiContext 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
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
Craig Craig
9dd820e2e7 Spelling fixes 2017-05-08 08:30:50 +02:00
Michał Janiszewski
04b4ae429e Fix platform_get_ticks for POSIX
Previously it did not include seconds
2017-05-05 22:25:47 +02:00
Michał Janiszewski
03d1115425 Fix macOS version detection macros again 2017-05-05 10:37:41 +02:00
Michał Janiszewski
7fc9bf62ce Fix macros detecting macOS version 2017-05-05 08:46:03 +02:00
Richard Jenkins
28eb5fb279 Move mach_timebase_info init to core_init() 2017-05-05 00:40:07 +01:00
Richard Jenkins
f8b79a4a3f Cache mach_base_info 2017-05-04 22:33:32 +01:00
Richard Jenkins
3d6f13da13 Whitespace fix 2017-05-04 22:10:00 +01:00
Richard Jenkins
e1d964cb26 Implement platform_get_ticks() for macOS <10.12 2017-05-04 22:00:25 +01:00
Michał Janiszewski
8e6ea776f6 Add time.h include to shared.c for clock_gettime 2017-05-04 17:29:05 +01:00
Ted John
73fb132e41 Replace some SDL functions with our own 2017-05-04 17:27:51 +01:00
CraigCraig
e0b875398b Tons of spelling fixes (#5413)
[ci skip]
2017-04-30 06:39:24 +02:00
Marco Benzi Tobar
67b4d919b4 Update the window size when using maximise on macOS 2017-04-07 17:09:11 +02:00
Nelson Chen
dc848bb8e3 macOS Sierra (10.12): Disallow Automatic Window Tabbing
Automatic Window Tabbing in macOS Sierra causes a menu item called "Show
Tab Bar" to appear under the Window menu in the menu bar. Selecting this
option causes a double-title bar effect as there is no option in OpenRCT2
to make new tabbed "documents". This double-title bar can be untoggled
by selecting "Hide Tab Bar".

I don't think OpenRCT2 is going to become a tabbed document-oriented
themepark simulator anytime soon. Thanks, but no thanks Sierra.

References:
* https://codereview.chromium.org/2325313002/
* https://hg.mozilla.org/releases/mozilla-aurora/rev/385b9ea08ff7

* Use better Obj-C styling for macos_disallow_automatic_window_tabbing()
2017-03-13 23:03:29 +01:00
Ted John
bcc0bfa485 Rename climate.h to Climate.h 2017-03-11 22:59:33 +00:00
Ted John
fb2c835d52 Include new config header 2017-02-18 15:45:10 +00:00
Ted John
e649e7ad4a Move creation of version string to Version.cpp 2017-02-09 17:58:19 +00:00
Ted John
efb64603eb Only create OpenGL window when necessary
Currently the game window is always created with an OpenGL context which then means that opengl32.dll and other modules are loaded. The OpenGL window flag will now only be used if the config drawing engine is set to OpenGL. This now means that a restart of the game is required when switching to the OpenGL drawing engine for Windows.

#5104
2017-01-22 21:38:08 +00:00
Ted John
fc66f42c31 Add config option to enable / disable light FX 2017-01-21 12:01:01 +00:00
Broxzier
60603ae10a Use types from common.h 2017-01-14 12:37:31 +01:00
Michał Janiszewski
33dcb1a506 Rename types to avoid shadowing 2017-01-13 10:57:00 +01:00
Ferdinand Thiessen
afbe1dda0f Fix 'No real prototype' warnings 2017-01-12 09:52:44 +01:00
LRFLEW
47c532d020 Don't zoom to cursor for keyboard or toolbar inputs (#5028) 2017-01-11 17:43:11 -06:00
Ted John
d535e290d3 Remove --console CLI switch 2017-01-10 17:29:52 +00:00
Ted John
25bc798ff8 Move contents of src into project sub directory 2017-01-04 17:44:12 +00:00