Alexander Overvoorde
316abb1df9
Change screenshot logic to use palette that is actually used for rendering ( fixes #2925 )
2016-02-15 03:23:47 +01:00
Michał Janiszewski
2ebb691e71
minor fixes
...
* initialize variables properly
* fixes to handling of zenity/kdialog on Linux
* remove unnecessary call
2016-02-14 21:06:44 +01:00
Ted John
703e9c3153
Merge pull request #2839 from anyc/develop
...
Linux: use zenity or kdialog to show user dialogs
2016-02-13 12:15:41 +00:00
IntelOrca
19d1338834
ensure input string is terminated when pasting
2016-02-12 22:43:23 +00:00
Ted John
a9ba5eadd5
Merge pull request #2910 from Overv/automatic-player-name
...
Change default player name to use the OS username if available (resolves #2761 )
2016-02-12 00:04:22 +00:00
Alexander Overvoorde
05c1aabc39
Move fallback name logic out of platform_get_username
2016-02-12 00:31:23 +01:00
Alexander Overvoorde
65f25f8340
Get fallback player name from language files
2016-02-10 22:46:25 +01:00
Alexander Overvoorde
a5b47a8481
Change lmcons.h include capitalization (breaks mingw)
2016-02-10 22:33:39 +01:00
Alexander Overvoorde
4f0fc1065b
Change to more reliable way to access username on posix
2016-02-10 21:59:38 +01:00
Alexander Overvoorde
75b072d266
Change default player name to use the OS username if available ( resolves #2761 )
2016-02-10 21:49:41 +01:00
Alexander Overvoorde
417f78b3ea
Use proper UTF-8 handling for formatting code detection
2016-02-10 19:52:36 +01:00
Alexander Overvoorde
5adb18528e
Fix user being able to enter formatting characters ( fixes #2892 )
2016-02-09 21:31:01 +01:00
anyc
fb1c6b22ba
Linux: use zenity or kdialog to show user dialogs
2016-02-09 21:27:57 +01:00
Michał Janiszewski
80ad302087
Allow user to use NN scaling at integer scales
...
While linear/anisotropic filtering introduces in previous commit looks
good at non-integer scales, using it at integer scales may make screen
look unnecessarily blurry. This commit introduces an option to use NN
scaling at integer values of scale.
2016-02-01 21:19:26 +01:00
Michał Janiszewski
18ec2238a2
Allow runtime selection of render quality hint
...
This change allows to pass render quality hint to SDL in runtime. While
using hardware display, SDL can hint the renderer to use linear or
anisotropic filtering, which can deliver a better experience when using
non-integer scale value.
2016-02-01 21:18:15 +01:00
anyc
ffafd07c90
use enum to specify file dialog type
2016-01-29 19:03:09 +01:00
Fabio Ka
d193e9f3b3
Change msgbox flags/log on Linux to "warning"
2016-01-29 19:01:00 +01:00
Fabio Ka
6b2b6e476c
Add message box on Linux platforms
2016-01-29 19:00:36 +01:00
LRFLEW
44dd98135d
Regain window focus on OS X file dialog close
2016-01-23 17:25:32 -07:00
Michał Janiszewski
3bf1e0e06d
Rename safe_strncpy to safe_strcpy
2016-01-18 20:49:52 +01:00
Michał Janiszewski
5bc330f8db
Minor fixes, mostly posix.c
2016-01-18 20:48:41 +01:00
Ted John
391bea67bb
Merge pull request #2634 from oslerw/develop
...
Add /usr/local/share to search path for data files
2016-01-16 14:49:34 +00:00
William Osler
60920a2d10
Add /usr/local/share to search path for data files
...
`/usr/local` should be examined before `/var/lib,` since it allows for
overriding data files that might come from the package manager.
2016-01-15 22:47:12 -05:00
IntelOrca
cdee534eb1
use SDL2's platform defines to normalise platform guards
2016-01-14 20:12:43 +00:00
Marijn van der Werf
0825b9bf62
Share currency detection across platforms
2016-01-13 21:38:10 +01:00
Marijn van der Werf
452acd7627
Set minimal window size
2016-01-13 19:55:35 +01:00
Ruben De Smet
e9ed444387
Implement singleton locking for POSIX.
2016-01-11 14:33:19 +01:00
Ruben De Smet
afc89195aa
Remove stub from posix.c:platform_get_drives
2016-01-11 14:33:19 +01:00
Ruben De Smet
cd72f282dc
POSIX: implement move file method
2016-01-11 14:33:19 +01:00
Ruben De Smet
e035c7984a
Fix concerns in platform_directory_delete.\n\n Not sure about fts_close when passing NULL yet. Leaving this commit as a marker
2016-01-11 14:33:19 +01:00
Ruben De Smet
012ff3adbc
Add platform_directory_delete implementation for posix.
2016-01-11 14:33:19 +01:00
Ruben De Smet
b0a531b523
Implement file copy on POSIX systems.
...
Autosave should work now on Mac OS X and Linux.
Fix tabs randomly inserted by vim
Concerns in file copy
2016-01-11 14:33:15 +01:00
Ted John
1b62f22bde
Merge pull request #2690 from janisozaur/debian
...
Support for debian packaging.
2016-01-10 23:46:37 +00:00
Ruben De Smet
c675993d3f
Fix a bug where some paths get truncated on posix.
...
Especially when editing the title screen on.
2016-01-10 23:55:56 +01:00
IntelOrca
c7feb72a69
move compiler normalisation to rct2.h
2016-01-10 22:50:35 +00:00
IntelOrca
e79edcb1d6
fix posix.c headers
2016-01-10 22:50:32 +00:00
IntelOrca
e9d222fdd3
new-argparse: finish new argparse integration and clean up
2016-01-10 22:50:31 +00:00
IntelOrca
9d98147b75
new-argparse: implement argument and option parsing
2016-01-10 22:50:29 +00:00
IntelOrca
5796cf3053
use native line endings for config.ini and themes, closes #2678
2016-01-09 22:43:12 +00:00
IntelOrca
3073bc64fd
remove rct2_endupdate
2016-01-09 00:25:30 +00:00
IntelOrca
3b4928c041
fix windows file enumerate pattern matching
2016-01-04 18:29:18 +00:00
Ted John
015c76084e
Merge pull request #2616 from atmaxinger/autosave-timestamp
...
Append timestamp to autosave
2016-01-04 17:54:11 +00:00
Maximilian Irlinger
a0bb568889
Append timestamp to autosave
2016-01-04 16:22:15 +01:00
Michał Janiszewski
b45ca38d52
UTC epoch time for POSIX
2016-01-03 21:41:21 +01:00
IntelOrca
99e0d999b2
add timestamp to highscores.dat
2016-01-03 01:48:52 +00:00
Michał Janiszewski
8a5d066efe
Fix strict aliasing violations
...
Compiler only guarantees proper accesses to variables when using
variable's native type or `char` (i.e. single byte type) [1].
This commit fixes violations of this rule. In most cases changing code
to a simple cast was enough, some required a bit deeper modifications.
This fixes #2596 .
[1] http://blog.qt.io/blog/2011/06/10/type-punning-and-strict-aliasing/
2015-12-31 13:27:26 +01:00
Michał Janiszewski
36de7a9027
Fix warnings
...
Some off-by-one errors, truncation warning fix, main() in posix.c no
longer a stub.
2015-12-29 16:09:36 +01:00
Michał Janiszewski
6a5fc90cd4
Fix CMakeLists for MinGW cross-compilation
...
This makes sure that shared library built with MinGW toolchain is linked
statically to *all* its dependencies, including libc, libstdc++, libsdl2
and all the others. This allows producing of working `openrct2.dll` by
cross-compiling.
I hit a bug with libcrypto, a dependency of libssl, which in turn is a
dependency of curl, which creates a `DllMain` entrypoint for static lib
too, but since we don't do anything in ours, this should be safe.
I have only had chance to try it out when cross-compiling, ideally it
should be tested under Cygwin/MSYS too, but it is too bothersome to
setup for me.
2015-12-28 01:17:28 +01:00
Michał Janiszewski
184b375dcb
Fix XP compatibility after #2546
...
8bdec9f68 (#2546 ) introduced call to SHGetKnownFolderPath which is only
available on Vista and later operating systems, but eda733165 restored
previous hard-coded functionality for MinGW. Use the same for XP
support.
According to
https://tedwvc.wordpress.com/2014/01/01/how-to-target-xp-with-vc2012-or-vc2013-and-continue-to-use-the-windows-8-x-sdk/
it should work.
2015-12-27 20:34:04 +01:00
Tomáš Pazdiora
6ac38a6382
fixed bug in "Fix #2158 "
...
which caused (if fullscreen was set) starting game in desktop resolution instead of selected fullscreen resolution.
2015-12-26 23:48:05 +01:00