79 Commits

Author SHA1 Message Date
Martin Hrubý
cf606d23f3 Drop OS X 10.7 and Growl support (#2749)
(cherry-picked from commit 39d1476ade2a438c783ee0570a51db12da30b33e)
2018-10-07 03:18:15 +00:00
Charles Dang
45f871067f Use std::size_t everywhere instead of plain size_t
Excludes:
* spirit_po/
* xBRZ/

(cherry-picked from commit fc2a58f6935176b70a035d3e1c03080f79687f94)
2018-10-07 03:17:59 +00:00
Charles Dang
fb61666e96 Fixup build 2018-03-15 19:11:13 +11:00
Charles Dang
686aca2667 Save screenshots as JPGs when building with SDL_Image 2.0.2 or newer
This functionality was added in that release. Since it's only 4 months old, it's
too early to make minimum; it won't be available on some Linux distros yet.

There's currently no way to choose between JPG or PNG files. That can (and should)
be added later. For now, it defaults to JPG files if SDL_Image is of the appropriate
version.

I've also left the BMP fallback path, but that should never be reached now, since
PNG saving is always available

Closes #1448.
2018-03-15 04:31:30 +11:00
Charles Dang
dfc42e8a8d Use SDL_Image to handle saving PNG screenshots instead of SDL_SavePNG
When iceiceice (@cbeck88) added "save screenshots as PNGs" support back in 2014
(8dfdc6b185f7d9c5d6166f28dd2693fc64a30a27) we had yet to switch to SDL 2. At the
time, SDL_Image didn't provide any method of saving PNG files on its own. However,
it does as of SDL_Image 2.0.0.

A small caveat is that this built-in PNG save functionality is a bit less efficient
at compression than SDL_SavePNG. A test in DiD S1 with SDL_SavePNG_RW vs IMG_SavePNG_RW
yielded a file ~ 1 MB larger in the latter case.

This removed SDL_SavePNG and it's optional build-time dependency of libpng.
2018-03-15 04:31:30 +11:00
Celtic Minstrel
3bececed7c Sanitize the build info report to blank out the user's name
This report is intended for submission in bug reports,
so it makes sense to avoid the user's name for privacy concerns.
2018-03-12 12:20:52 +11:00
Charles Dang
950a156712 Addressed most of the remaining whitespace issues from #2613
[ci skip]
2018-03-11 14:59:37 +11:00
Iris Morelle
c9eee2d351 Copyright/attribution update
[ci skip]
2018-02-16 20:03:24 -03:00
Gregory A Lundberg
e12a2a19ca
fix reassign before first use
cppcheck (via Codacy) pointed out that a variable was initialized, then reassigned, before the initialed value was used.

Moved the variable declaration to the point the actually-used value was assigned.
2018-01-28 09:07:26 -06:00
Gregory A Lundberg
b5f76eff79
Bump copyright to 2018 2018-01-19 00:02:20 -06:00
Celtic Minstrel
933ff02800 Fix for notifications in macOS showing as not built when looking at build info in the game.
Updated the macOS project file to include a new dependency on libcrypto.
2017-06-04 10:36:01 -05:00
Ignacio R. Morelle
771e05d812 bi: Drop orphaned include from a draft of a previous commit 2017-05-25 02:35:14 -04:00
Ignacio R. Morelle
ce0a5c1829 bi: Add OpenSSL/libcrypto version info
Best 90 minutes I've ever spent in my life. I could've done string
comparisons, but somehow I suspect their format is more likely to change
in the future than the numeric versions.

Also, beware that the upstream documentation (both on their wiki and
their source) does not accurately reflect history -- the version numbers
for releases between 0.9.3 and 0.9.5 were vastly different, and this
version of the algorithm I wrote seems to be the best fit for all of
them.)
2017-05-25 02:23:02 -04:00
Ignacio R. Morelle
5ed8dc3847 gui2/game_version: Move report text generator to game_config ns for general use 2017-05-22 00:05:11 -04:00
Charles Dang
b49a90d037 All hail the great emplace_back \o/ 2017-05-01 17:30:24 +11:00
Celtic Minstrel
b4dc11ce36 Belated 2017 copyright update 2017-03-19 10:05:38 -04:00
Charles Dang
6130c668c4 Use cleaner format for formatter() when possible 2016-08-05 11:58:42 +11:00
Chris Beck
33b0ea50b9 give formatter an x-value conversion to std::string, use in some examples 2016-07-31 20:18:52 -04:00
ancestral
ce50063f1a Removed include for sdl_net 2016-07-23 21:45:15 -05:00
Charles Dang
168313bed9 Cleaned out some SDL_net-related detritus
This allows the main executable to build without SDL_net as a dependency.
2016-06-06 05:56:24 +11:00
Celtic Minstrel
3ac7f8d970 NULL -> nullptr
A few cases of NULL were missed, since changing them led to errors
(Mainly instances where it was passed to a boost::function)
2016-03-31 00:42:38 -04:00
Andreas Löf
358bd1235f Remove SDL1.2 code
This removes all legacy SDL1.2 code. It was done by invoking:
coan source --replace --no-transients -D"SDL_VERSION_ATLEAST(X, Y, Z)"=1 <file>
on each file.
2016-03-13 11:34:34 +13:00
Ignacio R. Morelle
c548e4a61a New Year copyright update 2016-03-02 22:16:50 -03:00
Andreas Löf
aae2ad77e6 Make the game compile with SDL2.
This does the bare minimum to get the game compiling and running again with SDL 2. It fixes all of the compile errors, adds a missing seek operation to the SDL_RWops. The missing seek operation caused a NULL pointer dereference during game start.
2015-08-02 22:09:02 +12:00
Ignacio R. Morelle
0ed6815296 bi: Fix some inconsistent spelling 2015-07-14 01:10:02 -03:00
Ignacio R. Morelle
93a544e584 bi: D-Bus isn't supposed to be an option on non-X11 platforms 2015-07-14 01:09:00 -03:00
Ignacio R. Morelle
10baf45766 bi: Keep track of optional build features and add a report function
Also added this information to --version's output.
2015-07-13 05:12:26 -03:00
Ignacio R. Morelle
29d4da6ec4 bi: Add getter for user-visible library names 2015-07-13 05:12:26 -03:00
Ignacio R. Morelle
077c66fdc0 New centralized library versions API
Registers library versions in a single structure that can be queried
later as many times as necessary (say, from the game UI) instead of
relying on recording this information in different object files in an
inconsistent fashion. Also, it provides a pretty formatter for console
usage (e.g., in --version).

libpng also gets to join in the fun.
2015-07-09 03:21:19 -03:00