leper
36c6b50944
Revert emplace for associative containers. Fixes #3366 .
...
GCC < 4.8.0 does not support emplace for those.
See https://gcc.gnu.org/bugzilla/show_bug.cgi?id=44436 .
This was SVN commit r16922.
2015-08-19 03:32:47 +00:00
leper
674f49f1a8
Remove generated test files during clean-workspaces.sh. Patch by otero. Fixes #3275 .
...
Also remove two generated and disabled test files.
This was SVN commit r16921.
2015-08-19 01:30:09 +00:00
leper
217a500d60
Add missing license headers. Fixes #3357 .
...
This was SVN commit r16903.
2015-07-31 11:28:14 +00:00
leper
c5aad60776
Actually stop iterating if retval != INFO::OK. Also fix comments.
...
This was SVN commit r16900.
2015-07-30 21:50:58 +00:00
leper
15a4c813d6
Add support for AArch64 (ARM64). Patch by tbm. Fixes #3345 .
...
This was SVN commit r16899.
2015-07-30 19:52:55 +00:00
leper
8bfe16cac8
Use in-place construction.
...
This was SVN commit r16894.
2015-07-29 23:44:17 +00:00
leper
bd53e9d736
Remove unused ah_translate code.
...
This was SVN commit r16881.
2015-07-27 01:08:15 +00:00
leper
caa8f51c2e
Annotate custom assert for clang-analyzer.
...
This was SVN commit r16800.
2015-06-21 18:46:23 +00:00
historic_bruno
e5727980da
Adds debug output to display return code of failing SHGetFolderPathW, refs #3267
...
This was SVN commit r16688.
2015-05-27 02:02:32 +00:00
fabio
487d6a1afc
When using SDL2 recommend a >= 2.0.2 version to avoid incurring in possible bugs with older versions.
...
This was SVN commit r16585.
2015-04-27 07:56:34 +00:00
historic_bruno
b6bcfdbb2e
Fixes missing newlines in debug_printf, patch by elexis, fixes #3056
...
This was SVN commit r16534.
2015-04-12 19:38:31 +00:00
leper
cf527707da
Revert "Improve ARRAY_SIZE." ( 7afaacda19).
...
constexpr and noexcept are only supported by VS November 2013 CTP.
This was SVN commit r16508.
2015-04-06 21:24:53 +00:00
leper
7afaacda19
Improve ARRAY_SIZE.
...
This was SVN commit r16499.
2015-04-05 16:50:26 +00:00
historic_bruno
89107d1406
Fixes grayscale PNG handling, there is no need to convert them all to RGB and 4741e896c4 broke special font texture handling. Instead, only grayscale with alpha PNGs will be converted to RGBA (they fail to load otherwise).
...
Removes warning about converting grayscale textures, refs #1640 .
This was SVN commit r16449.
2015-03-19 03:04:01 +00:00
historic_bruno
4741e896c4
Improves handling of PNG textures based on GdkPixbuf's setup_png_transformations. The PNG decoder should now support grayscale, RGB or indexed color; bit depth up to 16; and interlacing. Fixes #1640 , refs #2823 , #3082
...
This was SVN commit r16439.
2015-03-16 02:28:00 +00:00
historic_bruno
b1c4e29ac8
Fixes inconsistencies in spelling of colour/color by preferring "color" (only wxWidgets remains with some API that requires "colour"), fixes #1029 .
...
NOTE: requires update-workspaces and may require correction of some
modded actors/scenarios
This was SVN commit r16438.
2015-03-15 23:59:48 +00:00
leper
e41ec77eb6
Remove unused file.
...
This was SVN commit r16417.
2015-03-15 04:16:31 +00:00
historic_bruno
7fe9eb956f
Fixes error in SMBIOS::InitStructures by not warning on invalid header size, fixes #2985
...
This was SVN commit r16374.
2015-02-22 00:42:11 +00:00
historic_bruno
e48e330db7
Sets SDL2 as default and only build option on Windows.
...
Removes remnants of WSDL. Refs #2041
This was SVN commit r16357.
2015-02-20 05:52:18 +00:00
historic_bruno
a5e940430f
Suppresses libpng warning "iCCP: known incorrect sRGB profile" by manually handling warning messages (errors still use default handler), fixes #2184
...
This was SVN commit r16350.
2015-02-17 10:50:19 +00:00
Ykkrosh
49222a4c6a
Fix Windows build
...
This was SVN commit r16334.
2015-02-14 02:22:22 +00:00
Ykkrosh
e06a7b37d8
Convert debug_printf to take UTF-8 strings instead of wchar_t.
...
This fixes the problem where passing a non-ASCII string to
debug_printf(L"%hs", s) caused vswprintf_s to fail on Linux (because it
doesn't know what encoding the char* is meant to have). Now debug
messages will remain as UTF-8 until they reach the OS.
Fixes #3021 .
This was SVN commit r16332.
2015-02-14 01:45:13 +00:00
Ykkrosh
4473ed5c88
glext_funcs: Support glMapBuffer, glMapBufferRange
...
This was SVN commit r16231.
2015-01-25 16:36:23 +00:00
leper
4c1903500b
Switch to std::shared_ptr and std::weak_ptr.
...
This was SVN commit r16227.
2015-01-25 03:10:58 +00:00
leper
0843100d11
Remove partial emulation of some C++11 features for older compilers.
...
This was SVN commit r16226.
2015-01-24 20:37:18 +00:00
leper
0261d12727
Remove some checks for usupported VS versions (<2013).
...
This was SVN commit r16225.
2015-01-24 20:37:16 +00:00
leper
fc902df07c
Remove checks for unsupported GCC versions (<4.6).
...
This was SVN commit r16224.
2015-01-24 20:37:07 +00:00
Ykkrosh
67956f969e
Make ARRAY_SIZE(pointer) complain in GCC, not just in MSVC.
...
The ArraySizeDeducer trick has worked since at least GCC 4.4, so it's
fine to rely on it now.
This was SVN commit r16218.
2015-01-24 17:35:25 +00:00
Ykkrosh
de25e536c3
Update NONCOPYABLE to use C++11 "=delete".
...
This gives slightly better error messages.
This was SVN commit r16217.
2015-01-24 17:33:49 +00:00
Ykkrosh
3ce38e536e
Update cassert to use C++11 static_assert.
...
This gives clearer error messages, and simplifies the code.
This was SVN commit r16216.
2015-01-24 17:29:19 +00:00
Ykkrosh
8f0ace2658
Make Android %ls/%hs workaround work on secure_crt as well as wsecure_crt.
...
Refs #2996 .
This was SVN commit r16210.
2015-01-24 00:22:12 +00:00
Ykkrosh
4d4ddb5978
Add workaround for Android libc++ swprintf bug.
...
Based on patch by BogDan. Refs #2996 .
This was SVN commit r16209.
2015-01-24 00:20:15 +00:00
Ykkrosh
c9dee72667
GLES doesn't have glDisable(GL_TEXTURE_2D).
...
Patch by BogDan. Refs #2996 .
This was SVN commit r16206.
2015-01-23 20:40:02 +00:00
Ykkrosh
ad3e330861
Workaround for limitations of Android's vswprintf implementation.
...
Based on patch by BogDan. Refs #2996 .
This was SVN commit r16203.
2015-01-23 20:38:13 +00:00
historic_bruno
65cc47f6c0
Deletes unused bundled MSVC runtime libs for old 2005 and 2008 versions.
...
Removes VC80 manifest info.
This was SVN commit r16199.
2015-01-23 03:21:48 +00:00
Ykkrosh
f350a24c73
Disable "assignment operator could not be generated" warning globally on Windows, since it's never useful.
...
This was SVN commit r16192.
2015-01-22 21:09:33 +00:00
Ykkrosh
d7926eb612
Add basic tests for %s/%hs/%ls in sprintf_s, swprintf_s.
...
This was SVN commit r16191.
2015-01-22 20:39:53 +00:00
Ykkrosh
ef2a358f87
Remove sys_vswprintf.
...
The implementation on Windows was gross. The only user was CLogger,
which no longer uses it.
Also fix vswprintf_s to handle truncated output correctly (by returning
"") on Linux, now that CLogger is no longer relying on the buggy
behaviour.
This was SVN commit r16190.
2015-01-22 20:39:28 +00:00
Ykkrosh
b90bc147c9
Add Path::string8 (which returns a UTF-8 encoded std::string).
...
This saves the hassle of writing utf8_from_wstring(path.string()) in
places like log messages, and can be extended to better handle
non-ISO-8859-1 paths on Linux.
This was SVN commit r16185.
2015-01-22 20:33:11 +00:00
Ykkrosh
49e2ecea63
Automatically convert all CLogger format strings from wchar_t* to char*.
...
Done with:
ag -ls 'LOG(MESSAGE|MESSAGERENDER|WARNING|ERROR)' source | xargs sed
-i 's/LOG\(MESSAGE\|MESSAGERENDER\|WARNING\|ERROR\)(L/LOG\1(/g'
This was SVN commit r16183.
2015-01-22 20:31:30 +00:00
Ykkrosh
dcf5a2667f
CLogger: Use cppformat instead of sys_vswprintf.
...
sys_vswprintf relies on platform-specific printf implementations, which
vary widely between platforms (in handling of truncation, return values,
use of %s/%S/%hs/%ls for mixing char and wchar_t strings, etc) and are
therefore a pain.
Use cppformat's fmt::sprintf instead, which has very similar syntax to
sprintf but is more C++ish and is portable.
Also, wchar_t is stupid, so use char* strings (which are expected to be
UTF-8) in CLogger. This creates a bit of a pain with changing all
callers to convert to char* strings, but that's their fault for not
using UTF-8 already.
Refs #3011 .
This was SVN commit r16182.
2015-01-22 20:30:05 +00:00
Ykkrosh
e1e163b3f7
Improve ogl_WarnIfError() to report the file/line where the error was detected
...
This was SVN commit r16164.
2015-01-19 20:06:16 +00:00
Ykkrosh
b74e853144
Fix typo which caused GLES errors
...
This was SVN commit r16163.
2015-01-19 20:04:46 +00:00
leper
7e0e566346
Fix typo in include. Refs #2086 .
...
This was SVN commit r16018.
2014-12-03 16:43:51 +00:00
leper
759a6701f6
Fix test build.
...
The parser that extracts the methods to call does not care about
defines.
This was SVN commit r16013.
2014-11-29 21:26:01 +00:00
leper
504e23acb8
Make some things static.
...
This was SVN commit r15997.
2014-11-20 22:19:33 +00:00
leper
335ac3d0cb
Query /proc for the executable path on Linux. Patch by starslayer. Refs #2086 .
...
Factor out unix_ExecutablePathname() which is used by BSDs and Linux (as
a fallback).
This was SVN commit r15996.
2014-11-20 22:19:21 +00:00
leper
f4b5054815
Fix valgrind warning about uninitialized variable. Patch by Echelon9. Fixes #2878 .
...
This was SVN commit r15936.
2014-11-08 00:37:42 +00:00
historic_bruno
6334ee3f8b
Reverts 03eaf9b461 due to licensing issues (source/lib is MIT licensed) and replaces with compatible FreeBSD/clang-based solution, patch by pstumpf. Refs #2675
...
This was SVN commit r15890.
2014-10-18 20:45:11 +00:00
historic_bruno
03eaf9b461
Fixes cpuid to work with i386 CPUs and PIE/PIC, based on old GCC cpuid.h source and patch by pstumpf, fixes #2675
...
This was SVN commit r15886.
2014-10-18 03:07:24 +00:00