1
0
mirror of https://github.com/OpenRCT2/OpenRCT2 synced 2026-01-20 21:43:06 +01:00
Commit Graph

55 Commits

Author SHA1 Message Date
Michał Janiszewski
9284930d7e Add safe_strncpy function
safe_strncpy is similar to strncpy, but makes sure buffer is
null-terminated. Update most of project to use this updated function to
prevent illegal memory accesses.
2015-10-30 16:01:00 +01:00
Ted John
5e9912e880 Merge pull request #2038 from HaasJona/restart_required
Require a restart after changing hardware rendering
2015-10-24 14:44:01 +01:00
Jonathan Haas
475466dcd9 Require a restart after changing hardware rendering setting, decouple setting from active status 2015-10-24 12:50:28 +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
Michał Janiszewski
d570163958 Fix types
Bunch of type fixes
2015-10-19 20:30:46 +02:00
zsilencer
cf78d76bdf make disable volume on focus lost not reset title music 2015-10-17 11:48:39 -06:00
Alexander Overvoorde
609dad157a Optimise Steam overlay check 2015-10-04 22:31:28 +02:00
Alexander Overvoorde
51377fc960 Add setting for Steam overlay pausing and add extra check 2015-10-03 23:10:56 +02:00
Alexander Overvoorde
c03cec721e Add Steam overlay detection that pauses the game (#1903)
The Steam overlay is detected by checking if the center pixel of
the framebuffer is changed between rendering and presenting to the
screen. This happens when the Steam overlay draws the gray fade on
the screen.

This does not affect other overlays like FRAPS, MSI Afterburner and
OBS overlays that don't obstruct the center of the screen.
2015-10-03 23:10:56 +02:00
Jonathan Haas
d6a5d78742 Handle SDL_CreateRenderer error 2015-10-03 18:22:05 +02:00
zsilencer
ffee5229b5 fix directories in linux 2015-10-02 14:48:10 -06:00
zsilencer
5793ded423 mouse drag in linux 2015-10-02 09:51:34 -06:00
Michał Janiszewski
33d5e0b79f fix loop counter 2015-09-22 22:58:34 +02:00
Michał Janiszewski
4df8761831 remove windows-only code
Step 1 on road towards Linux.

Remove windows-specific code, stub it out where needed and make sure we
can still compile it the way it is.

Take care of Travis' build matrix to include new build configuration.

Install new packages.
2015-09-18 16:01:38 +02:00
IntelOrca
bea74ee261 make all file IO utf8 compatible, fixes #1847 2015-08-29 13:13:23 +01:00
Runelaenen
fb5921db6d First headless version 2015-08-19 18:07:04 +02:00
medsouz
db9ea4cdf3 Added toggle for audio disable on focus lost
This closes #1758
2015-08-11 07:06:00 -04:00
medsouz
3ce6d7020b Pause audio when tabbing out
TODO: Figure out why title music and toilet sounds are still playing

Add an option to disable this feature so that people can jam out to the
carousel music while tabbed out.
2015-08-11 00:42:18 -04:00
Michał Janiszewski
7afb7e2dfd Portability fixes 2015-08-04 19:31:21 +02:00
IntelOrca
cac0f2ab52 upgrade to VS2015 compiler 2015-08-03 23:16:30 +01:00
IntelOrca
357111a560 implement utf8, part 11 2015-08-01 10:20:55 +01:00
IntelOrca
99c7c93764 implement utf8, part 9 2015-08-01 10:20:53 +01:00
IntelOrca
5f69e6f37a add cycle day / night 2015-07-24 22:58:41 +01:00
zsilencer
b876591543 use SDL_RWops for save games 2015-07-11 12:27:46 +01:00
zsilencer
9eb4958dde fix #1002 2015-07-05 08:57:01 -06:00
zsilencer
76b231c150 add option to uncap fps, and fix #1470 2015-07-04 13:14:14 -06:00
Duncan Frost
33c4698e06 Implemented map_reorganise_elements.
Fixed a potential issue that would cause cursors to become stuck.
2015-06-28 16:50:21 +01:00
Robert Jordan
0a4ac08caa Minimize fullscreen on focus loss 2015-06-24 18:12:53 -04:00
IntelOrca
dc3fe2a6c8 remove commented out CALLPROCs and CALLFUNCs 2015-06-09 15:09:45 +01:00
zsilencer
fbebd6527b fix whizzed screenshots 2015-06-07 13:02:17 -06:00
Robert Jordan
9f9143a5c6 textbox widget 2015-06-06 17:04:53 -04:00
zsilencer
c6e63d5d25 add volume control in options 2015-06-04 16:31:54 -06:00
zsilencer
14b9445d8a make texture screen blit faster 2015-06-02 02:21:07 -06:00
IntelOrca
c6aa17f053 add headless game support 2015-05-29 20:45:21 +01:00
IntelOrca
101fed0dd9 refactor g1Elements pointer and implement sub_68371D 2015-05-28 00:17:22 +01:00
IntelOrca
d0a50c43f4 fix #1129 2015-05-22 13:49:18 +01:00
IntelOrca
0013310f0d add hardware display 2015-05-22 03:17:46 +01:00
Robert Jordan
06449648b3 Possibly fixed issue #1056
Only resizes GUI and windows if not minimized.
2015-05-20 11:58:43 -04:00
IntelOrca
1339c9b493 fix console caret typo and invalidate screen on variable change 2015-05-20 02:37:44 +01:00
Robert Jordan
0fbeb9214e Finished improvements to console
Added commands: variables, get, and set
Added console scrolling
set console_small_font 1 will change the console font
Fixed issue with textinput incrementing the length twice in shared.c
2015-05-19 21:12:09 -04:00
Robert Jordan
61474ecd9a Progress on console 2015-05-19 13:46:05 -04:00
IntelOrca
8772cdd7aa add in game console 2015-05-19 03:54:09 +01:00
Robert Jordan
3dd1bf96c6 If MAC is defined Cmd+V will be used instead. 2015-05-13 12:10:14 -04:00
Robert Jordan
51ef292847 Added Ctrl+V to text inputs 2015-05-13 11:25:44 -04:00
Robert Jordan
37ff266fc6 Only checks window size during platform_resize() now
Removed platform_update_config_window_size()
2015-05-11 14:51:13 -04:00
Robert Jordan
40efb2c0d6 Last windowed size is now remembered
Added funciton platform_update_config_window_size() to shared.c
Window size is not updated if the window is maximized
2015-05-11 14:33:24 -04:00
Duncan Frost
e8d22fa002 Fix resolution defaulting to 640*480 2015-03-06 18:37:01 +00:00
IntelOrca
7f0ed995b5 improve reading and saving of configuration 2015-02-16 22:47:11 +00:00
IntelOrca
ac4cd56b63 add new load / save window, closes #580 2015-02-14 02:16:03 +00:00