Michael Hansen
34b2eb1836
More std::atomic and friends
10 years ago
Michael Hansen
23a071860e
pnUtRef started at zero refs instead of one, and this is simpler
...
than finding and removing all the extra Ref() calls.
10 years ago
Michael Hansen
d713a13dbe
Merge pnUtRef with hsRefCnt, and remove the former
10 years ago
Michael Hansen
aeb4c27c12
Clean up localization mgr lookups and add some missing mnemonics
10 years ago
Michael Hansen
d4465a2168
Port plFontConverter to Qt5
10 years ago
Michael Hansen
b48963b904
Make it compile and work in GCC / Linux
10 years ago
Michael Hansen
f0ed701d8f
Fix pfLocalizationDataMgr's SetElementPlainTextData to work properly
...
without a database re-load.
10 years ago
Michael Hansen
e929708a3b
Use std::atomic_int for hsSafeRefCnt, and move it to hsRefCnt.h/cpp
10 years ago
Darryl Pogue
a3d90948b7
Fix some coverity and style issues in pnEncryption.
10 years ago
Filtik
7d104772fd
Implement chat history browsing (Client and Python)
10 years ago
Adam Johnson
d4dbc81522
Fix another book-sharing message leak...
10 years ago
Adam Johnson
1ed13e6466
Fix some message leaks in cyCamera
10 years ago
Adam Johnson
426d8e08d7
Catch moar crashes...
...
... Instead of throwing up a useless VC++ dialog box, actually do our
error handling.
10 years ago
Adam Johnson
b3d6afc1c1
Can you say KABOOM?
...
The data is interleaved. If you randomly change it up, OpenAL *will* crash
on you...
10 years ago
Michael Hansen
07810ffd9c
Apparently these need to be at the top to work in a purely
...
command-line (msbuild) environment
10 years ago
Darryl Pogue
f9129ae82a
Fix const-ness of some pfPython GUI stuff.
10 years ago
Adam Johnson
f78deb37d3
Fix memory leak in Relto sharing
10 years ago
Adam Johnson
783f0e9eb1
Fix unlikely plStateDescriptor leak
10 years ago
Adam Johnson
4e35dbf528
Fix ConsoleTrigger memory leak
10 years ago
Adam Johnson
133098c18e
Fix pyMatrix44 memory leak
10 years ago
Adam Johnson
5672bcb57e
Fix Coverity issues with pfPatcher
11 years ago
Anne Marije v/d Meer
3fceb7652c
Const getters
11 years ago
Christian Walther
e26f479bb5
Make font flags available to Python in PlasmaConstants.
11 years ago
Anne Marije v/d Meer
04647a1c98
Fix comment Hoikas
11 years ago
Christian Walther
bee6001b78
Fix ptGUIControl.setFontFlags().
11 years ago
Anne Marije v/d Meer
664339a4bd
Move methods to pyGUIControl to pyGUIControlTextBox.
11 years ago
Anne Marije v/d Meer
4e613d1899
add python api to set flags
...
Clean up unwanted changes caused by IDE extension -.-
Reworked implementation
11 years ago
Christian Walther
0c8fc6d559
Undo the kRenderJustXForceLeft bugfix of 4 commits back.
...
The fix (adding adjustment of fRenderInfo.fDestPtr) made kRenderJustXForceLeft behave as intended (left-aligning the edge of the bitmap rather than the side bearing of the first character) but cuts off shadows in some places (e.g. at the left edges of "BUDDIES" and "NEIGHBORS" in the mini KI). To ensure enough space for the shadow, and considering that all content was developed and visually optimized with the bug in place, it seems better to preserve the buggy behavior and make kRenderJustXForceLeft work exactly like kRenderJustXLeft.
11 years ago
Adam Johnson
1967178e37
Link shadowed text rendering to the plDynamicTextMap::kFontShadowed flag.
...
Conveniently enough, this existing but unimplemented flag is already set mostly the way we want it in the current PRPs.
11 years ago
Christian Walther
6b4739aec9
Implement shadowed text rendering.
...
Intended to make KI text (player list and chat) better readable on light and patterned backgrounds. In this WIP, all text on GUI controls is rendered shadowed.
11 years ago
Christian Walther
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.
11 years ago
Christian Walther
b34577103e
Pixel-accurately clip characters to the available space instead of omitting whole characters that stick out.
...
In addition to being a prerequisite for shadowed text, this also fixes an issue sometimes seen at the bottom of the mini KI player list where characters with a descender were missing.
11 years ago
Adam Johnson
4cd2b2f7dd
Fix #303
11 years ago
Vincent Munsch
a1edba6267
fix for g++:
...
fix plVault LogMsg calls + remove useless wide char usage
fix usage of plAvatarMgr::FindAvatar() and plLinkEffectsTriggerMsg::SetLinkKey() with temporary variables
plNetServerSessionInfo.h need std::string
fix plProgressMgr.h: NumLoadingFrames() have an useless class context information
fix plSocket usage of non-standard NULL
11 years ago
Darryl Pogue
d615f47dc4
Improve clarity of stat/_wstat64 return value.
11 years ago
Darryl Pogue
87e2150948
Remove unneeded register keyword.
...
In modern compilers, the register keyword has no effect. On clang, it
generates warnings.
11 years ago
Darryl Pogue
b66a2ba9e3
Fix an uninitialized value in hsBounds.
11 years ago
Darryl Pogue
5e8d75169c
Use pointers instead of array syntax.
11 years ago
Branan Purvine-Riley
9724b8e17b
Fix uninitalized pointer assumed to be null in Listener.XMode console command
11 years ago
Branan Purvine-Riley
ff13a26e8a
Add better error handling to app.event console command
11 years ago
Michael Hansen
7c0c1635ab
Use the UTF-8 version of Expat
11 years ago
Darryl Pogue
a58fe4653f
Fix a clang warning in plPythonPack.
11 years ago
Darryl Pogue
c8d77714b9
Remove plFileSystem::GetTempFileName.
...
It was unused and on *nix used the deprecated mktemp function.
11 years ago
Darryl Pogue
f5e99ba9a3
Fixes for semaphores on *nix.
11 years ago
Michael Hansen
a58e9c643c
Clean up some warnings, and make the CRT ones more relevant
11 years ago
Darryl Pogue
a1e3fa6faf
Various MinGW compile fixes.
11 years ago
Florian Meißner
7a59dbae41
I did it wrooong
11 years ago
Adam Johnson
86c77006c8
PCH-ize plMessage
11 years ago
Adam Johnson
f77bf620ec
Remove unused NetCommMsg
11 years ago
Adam Johnson
14b3d3f03c
Fix unsafe cast
11 years ago