1
0
mirror of https://github.com/OpenRCT2/OpenRCT2 synced 2026-01-19 13:03:11 +01:00
Commit Graph

323 Commits

Author SHA1 Message Date
Ted John
1e65c7e940 Replace cursor position globals with gCursorState 2016-09-05 22:37:57 +01:00
Ted John
9d49dbd782 Integrate gCurrentCursor 2016-09-05 20:53:30 +01:00
Ted John
1338f7cedd Remove mouse state globals, use parameters instead 2016-09-05 20:50:33 +01:00
Michał Janiszewski
f8145b6edc Refactor inclusion of addresses.h
addresses.h is now only included when necessary, limiting scope as much
as possible.
2016-09-03 21:25:19 +01:00
Ted John
c586b887fd Fix warnings in crash.cpp 2016-08-28 17:19:13 +01:00
Ted John
12ef20ef31 Re-enable crash dumping 2016-08-28 17:17:20 +01:00
Ted John
8cf7e87b5c Fix many warnings for x64 2016-08-27 23:32:15 +01:00
Marijn van der Werf
3243e89cf9 Honor preferred user language on macOS 2016-08-21 22:15:35 +02:00
Marijn van der Werf
2c89d30f26 Fix #4318: Use user locale on macOS 2016-08-21 15:18:09 +02:00
Ted John
c645eee046 Enable DPI awareness for Windows x64 2016-08-18 18:37:51 +01:00
Michał Janiszewski
db00598d18 Fix main() signature for Windows 2016-08-08 07:25:22 +02:00
Ted John
c55d72412c Add x64 VS project configurations 2016-08-07 01:47:18 +01:00
Aaron van Geffen
29b0b4885e Reduce code verbosity.
This introduces the function `platform_get_cursor_position_scaled` as a common means of getting the cursor position compensated for window scaling.
2016-07-30 22:05:13 +02:00
Niels NTG
017e688fcc New file naming convention for screenshots
- With this change screenshot file names have the following pattern:
save file name +  + YYYY-MM-DD hh-mm-ss + .png

- To get the correct date and time the method platform_get_time and platform_get_date are rewritten and to a version for UTC and a version for local time. This change gave the opportunity to simplify the code generating file names for autosaves.

- SOUND_WINDOW_OPEN is now the new "shutter" sound when taking screenshot.
2016-07-24 20:32:55 +02:00
Michał Janiszewski
31a219a961 Fix declaration of Windows' StartOpenRCT 2016-07-14 14:11:50 +02:00
Michał Janiszewski
a6d0e6916e Fix function definitions to match their declarations
This makes sure every function is properly declared, which includes
proper `extern` wrappers.
2016-07-14 14:11:49 +02:00
Ted John
33d0bebad9 fix file / directory enumeration 2016-07-08 22:58:38 +01:00
Sven Slootweg
b343db3948 Fix incorrect variable name in posix.c log statement (#3980) 2016-07-03 22:20:36 +02:00
Michał Janiszewski
644a36a310 Fixes to -Wall compilation
By default, not all warnings are enabled. This change makes sure that
the project compiles correctly with following options turned on:

    -Wall -Wno-unused-but-set-variable -Wno-missing-braces \
    -Wno-unknown-pragmas -Wno-unused-function
2016-06-20 13:46:27 +01:00
Marijn van der Werf
42ee299f65 Replace references to OS X 2016-06-13 19:49:06 +02:00
Alexander Overvoorde
ca1590c086 Add parameter to utf8_remove_formatting to allow colour codes (fixes #3638) (#3831) 2016-06-09 12:30:32 +01:00
Ted John
313110ab8d reinstate hardware display 2016-06-07 22:47:31 +01:00
Ted John
3b627651aa add drawing engine config 2016-06-07 22:47:31 +01:00
Ted John
8920c73ea4 add software / hardware rendering switch 2016-06-07 22:45:36 +01:00
Ted John
2fa0c7977a add OpenGL drawing engine with FillRect impl 2016-06-07 22:45:36 +01:00
Ted John
3da57d0865 route old functions to new drawing interface
- hardware display temporarily removed
- rain, fps and other non-window elements not drawn
2016-06-07 22:45:36 +01:00
Goddesen
c60fce3549 Substituted tabs for spaces 2016-06-02 00:56:24 +02:00
Goddesen
9aa5958484 Added support for Norwegian (nb-NO) 2016-06-02 00:55:49 +02:00
Michał Janiszewski
451379c8a3 Handle SDL builds which already have HAVE_MATH_H defined (#3765)
ArchLinux's SDL2 build for mingw already has HAVE_MATH_H define, this
fixes warnings I was getting, as they are now upgraded to errors.
2016-05-28 12:24:52 +01:00
Michał Janiszewski
1cdbd1e459 Take care not to overflow buffers in platform_resolve_user_data_path (#3761) 2016-05-28 09:31:02 +01:00
Michał Janiszewski
642bfeb44e Ensure user directory exists when specifying custom path
This is done anyway in openrct2.c:openrct2_initialise(), but we will
have wrong custom user data path by then.
2016-05-27 21:43:52 +02:00
Michał Janiszewski
d9062f1f07 Wrap overly long lines in posix.c 2016-05-27 21:43:52 +02:00
Ted John
781c422c76 integrate tick variables 2016-05-20 22:56:45 +01:00
Hielke Morsink
c7a8e0cab7 Removed space from dump filename, and clearer output. 2016-05-15 01:00:06 +02:00
Hielke Morsink
e69574be12 Including short commit hash in dump filename 2016-05-15 01:00:05 +02:00
Ted John
0710eb7e87 Merge pull request #3585 from janisozaur/fixes 2016-05-13 18:22:20 +01:00
janisozaur
ca430e1b23 Drop unused variables (#3586) 2016-05-13 18:21:58 +01:00
Michał Janiszewski
070f298878 Make sure variables don't end up uninitialised 2016-05-13 13:23:37 +02:00
janisozaur
658e877955 Name all the typdef-ed structs (#3581) 2016-05-12 22:57:40 +01:00
janisozaur
deeafc5a60 Add --silent-breakpad switch, fixes #3535 (#3544) 2016-05-11 12:25:21 +01:00
Alexander Overvoorde
85a2614a6a Fix pasting of formatting characters being allowed and fix memory leak 2016-05-10 14:12:06 +02:00
janisozaur
2c3a832970 Swizzle bits of a window correctly for mingw builds (#3521) 2016-05-07 22:44:46 +01:00
janisozaur
fe826cd64f Fix posix's platform_file_copy (#3500)
The method may fail to properly copy data for files of sizes not being
a multiple of FILE_BUFFER_SIZE.
2016-05-05 22:59:27 +01:00
YJSoft
f3c1762a5a fix #3494 platform_file_copy always return false on posix 2016-05-05 16:50:07 +09:00
janisozaur
68bad6505c Add and correct licence headers to all sources (#3108) 2016-05-04 18:24:41 +01:00
Patrick de Wit
13701660c9 Implement customizable toggle windowed mode shortcut (#3462)
Implement customizable toggle windowed mode shortcut
2016-05-03 20:07:33 +01:00
Ted John
45843ec1d5 fix sub directory search for Windows
Fixes a small issue related to #3408
2016-04-24 23:55:28 +01:00
Ted John
652b1c83db integrate variables for lightning and toolbar dirty flags 2016-04-24 21:49:09 +01:00
Ted John
98f732aaf7 integrate screen variables (#3411) 2016-04-24 00:36:39 +01:00
Ted John
ee509caf35 integrate game paused variable and refactor 2016-04-23 13:34:55 +01:00