e929708a3b
Use std::atomic_int for hsSafeRefCnt, and move it to hsRefCnt.h/cpp
2014-05-17 21:30:42 -07:00
8c5286400a
Use premultiplied alpha for plDynamicTextMaps on GUI controls.
...
This fixes the irregular dark fringes around light text when not exactly pixel-aligned that are caused by independent interpolation of color and alpha. It also makes calculations simpler for things to come.
2014-04-26 21:14:50 +02:00
d615f47dc4
Improve clarity of stat/_wstat64 return value.
2014-04-20 17:12:59 -07:00
87e2150948
Remove unneeded register keyword.
...
In modern compilers, the register keyword has no effect. On clang, it
generates warnings.
2014-04-20 17:12:23 -07:00
b66a2ba9e3
Fix an uninitialized value in hsBounds.
2014-04-20 17:12:02 -07:00
5e8d75169c
Use pointers instead of array syntax.
2014-04-20 17:11:34 -07:00
9b46e8e739
Merge pull request #397 from zrax/warnings
...
Clean up some warnings, and make the CRT ones more relevant
2014-04-07 22:28:50 -04:00
c8d77714b9
Remove plFileSystem::GetTempFileName.
...
It was unused and on *nix used the deprecated mktemp function.
2014-04-05 20:40:51 -07:00
f5e99ba9a3
Fixes for semaphores on *nix.
2014-04-05 20:40:51 -07:00
a58e9c643c
Clean up some warnings, and make the CRT ones more relevant
2014-03-16 14:35:15 -07:00
a1e3fa6faf
Various MinGW compile fixes.
2014-02-19 23:31:43 -08:00
3d1bcf1988
Whoops-a-birdy
2014-01-22 20:59:25 -08:00
05567a2881
Help Coverity figure out how auto string sizes work, and fix 64-bit
...
portability at the same time
2014-01-21 21:23:48 -08:00
387e23061a
Minor changes to hash and hash_i to avoid making a copy of the string data
2014-01-21 15:21:32 -08:00
249f26c53f
plString Hash for unordered containers
2014-01-21 15:21:32 -08:00
d7fdf10455
Convert ReadSafe(W)String* to the plString variants, and remove the now
...
unneeded _TEMP variants. All safe strings read from hsStreams are
now plStringified :)
2014-01-21 15:21:32 -08:00
862a05cbd5
Remove name from hsReaderWriterLock, since nobody was using it.
2014-01-10 10:11:57 -08:00
5b6b886b55
Clean up DisplaySystemVersion() to avoid hsStrcpy, and add Windows 8.1
...
to the known versions decoder.
2014-01-10 10:11:50 -08:00
8cedb69e9e
Fix some invalid heap ops found by Dr Memory
2014-01-07 22:54:21 -05:00
901525d600
Remove some unused string stuff
2013-12-17 18:37:10 -08:00
de60a164d4
Merge pull request #355 from Deledrius/c11_regex
...
Use std::regex instead of PCRE.
2013-12-05 12:32:08 -08:00
786f06eafc
Fix plString ssize_t undefined errors.
2013-12-02 22:07:08 -08:00
c0d6556aa3
Use std::regex instead of PCRE.
2013-12-02 20:53:52 -08:00
3299267976
Integrate SecurePreloader into pfPatcher
2013-11-28 15:14:45 -05:00
346b6f8ac8
Implement pfPatcher backend
2013-11-28 15:12:03 -05:00
c69d546c69
Fix a VC++2013 compile error
2013-11-02 01:50:10 -07:00
f1767ebabe
Fix some *nix compiler errors.
2013-07-20 00:04:51 -07:00
dd35878465
Begin killing off sprintf
2013-07-09 21:30:42 -04:00
470ed86187
Let's use vsnprintf
for those legacy methods...
2013-07-09 21:30:41 -04:00
48f232c3a0
Aligned matrix loading
2013-06-19 16:37:54 -04:00
8e7505b8ce
Don't use CPUID call on targets that don't support it
2013-03-21 18:53:54 -07:00
dde3be140c
Support negative substring indexes from the right side of the string
2013-02-24 19:38:12 -08:00
9e87967f1a
Merge pull request #284 from Hoikas/pch
...
Trickle of PCH
2013-02-13 12:17:07 -08:00
04ecc27e8e
Fix a plFileSystem::CreateDir failure when called with a trailing slash
...
and requesting the whole tree to be created.
2013-02-04 19:47:13 -08:00
fc43c62174
CoreLib Precompiled Header
...
NOTE: I used a different header name this time because CoreLib headers are
visible top-level to the rest of the codebase.
2013-02-04 17:25:05 -05:00
3fb5f33517
Add plQuality entry for Shader Model 3
2013-02-01 16:44:44 -05:00
d0a1e440f3
Fix missing include in CoreLibs
2013-02-01 17:05:44 +01:00
29bc092cff
math.h -> cmath
2013-01-28 23:23:07 -08:00
b01aab4a39
Standardize on C++ headers.
...
Also removes a bunch of duplicate #includes of stuff that's already
pulled in by HeadSpin.h.
2013-01-28 23:15:54 -08:00
43ca24e167
Fix some plString/plFileSystem issues for *nix.
2013-01-28 23:15:11 -08:00
c7eba65e13
Fix a clang warning.
2013-01-28 21:58:48 -08:00
58106995b4
infinite loop fix
2013-01-26 12:51:22 +01:00
8f67596686
Merge pull request #275 from zrax/file-utils
...
Unify filesystem utilities
2013-01-22 16:27:26 -08:00
2c028c4b07
Remove hsFiles in favor of plFilesystem stuff
2013-01-21 14:48:32 -08:00
cc54fb07be
Finish deprecation of pnUtPath
2013-01-21 14:48:31 -08:00
970ad3e729
Add additional functionality to plFileSystem as needed
2013-01-20 21:37:32 -08:00
f86b549293
Re-define nil as nullptr, cleaning up some potential issues along the way
2013-01-20 21:12:13 -08:00
56e332a3c3
Add basic regex functionality to plString
2013-01-20 20:54:49 -08:00
ad5495ca45
Fix issues from review
2013-01-19 14:23:07 -08:00
6f6ade2636
Replace hsStream::Open duplicated methods everywhere with a single plFileName interface
2013-01-19 14:21:49 -08:00