1
0
mirror of https://foundry.openuru.org/gitblit/r/CWE-ou-minkata.git synced 2025-07-21 20:59:09 +00:00
Commit Graph

1460 Commits

Author SHA1 Message Date
e26f479bb5 Make font flags available to Python in PlasmaConstants. 2014-04-26 21:14:58 +02:00
04647a1c98 Fix comment Hoikas 2014-04-26 21:14:57 +02:00
bee6001b78 Fix ptGUIControl.setFontFlags(). 2014-04-26 21:14:56 +02:00
664339a4bd Move methods to pyGUIControl to pyGUIControlTextBox. 2014-04-26 21:14:55 +02:00
4e613d1899 add python api to set flags
Clean up unwanted changes caused by IDE extension -.-

Reworked implementation
2014-04-26 21:14:54 +02:00
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.
2014-04-26 21:14:53 +02:00
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.
2014-04-26 21:14:52 +02:00
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.
2014-04-26 21:14:51 +02: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
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.
2014-04-26 21:14:49 +02:00
4cd2b2f7dd Fix #303 2014-04-26 21:14:47 +02:00
54a1b99f56 Merge pull request #406 from Deledrius/Max7_VS12
Fix compilation of Max 7 plugin in VisualStudio 12
2014-04-26 13:42:42 -04:00
81214699ae Fix scope on preprocessor variables for Max plugin.
plAudioCore needs to know whether we intend to build the plugin, so
the change introduced in 978edc1 was causing compilation to fail when
building the plugin.

This moves detection and definition back into the root CMakeList,
but preserves the behavior of only looking for the SDK if needed.
2014-04-26 09:53:56 -07:00
683945fb7d Merge pull request #404 from dpogue/coverity
Coverity
2014-04-22 15:33:03 -04:00
c3d8e7e161 Add different SetText values to MaxCompat header.
Restores compilation of Max 7 plugin, as its SetText expects
a non-const pointer.

Additionally, NotifyInfo should already be declared in notify.h.
2014-04-21 08:53:07 -07:00
58d79679d3 Use std math functions in Max plugin.
VS12 provides math functions which were conflicting with ones defined
in texutil.h.  This removes the reliance on texutil.h and uses the
standard library's math in its place.
2014-04-21 08:52:09 -07:00
8ed43ca9ab Merge pull request #405 from dpogue/readme
Update README and add prepare_env scripts.
2014-04-20 23:59:30 -04:00
8ea4f1ffc4 Merge pull request #398 from zrax/expat-utf8
Use the UTF-8 version of Expat
2014-04-20 20:56:49 -07:00
14950f4c44 Update README and add prepare_env scripts. 2014-04-20 20:43:16 -07: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
fdd8279c57 Merge pull request #403 from dpogue/coverity_patches
Coverity patches

Closes #396.
2014-04-18 15:01:52 -07:00
e28d5c36b5 Merge pull request #401 from zrax/max_cmake
Only try to find the Max SDK if it was requested
2014-04-18 15:00:21 -07:00
9724b8e17b Fix uninitalized pointer assumed to be null in Listener.XMode console command 2014-04-18 14:23:53 -07:00
ff13a26e8a Add better error handling to app.event console command 2014-04-18 14:23:43 -07:00
613b001678 Clean up plDistributor max/pl point interop
There were two terrible things here:
* Some nasty pointer-based casting
* Storing references to temporaries

Unfortunately, storing addrs of temps was happening through a helper
function, so VS won't warn here. I think I caught all the cases where
those functions were being used wrongly, but I can't be sure until
coverity runs on this commit.
2014-04-18 14:22:16 -07:00
7c0c1635ab Use the UTF-8 version of Expat 2014-04-12 13:05:29 -07:00
978edc1423 Only try to find the Max SDK if it was requested (and show the option to try to build it always) 2014-04-12 01:00:11 -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
50d16c3d1f Merge pull request #393 from dpogue/nix-fix
*nix fixes
2014-04-05 23:04:31 -07:00
a58fe4653f Fix a clang warning in plPythonPack. 2014-04-05 20:40:52 -07: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
5594ce186e Added link to Roadmap wiki page. 2014-04-05 19:20:33 -07:00
a58e9c643c Clean up some warnings, and make the CRT ones more relevant 2014-03-16 14:35:15 -07:00
ccdcd55a6a Merge pull request #394 from dpogue/mingw-fixes
Various MinGW compile fixes.
2014-03-04 18:36:54 -08:00
a1e3fa6faf Various MinGW compile fixes. 2014-02-19 23:31:43 -08:00
a4af9e4243 Merge pull request #391 from Mystler/fix
Fix null dereference issue
2014-02-02 00:44:38 -08:00
7a59dbae41 I did it wrooong 2014-02-02 09:40:32 +01:00
22f1be0542 Merge pull request #387 from Hoikas/animFun
Animation Things and Stuff
2014-01-31 19:51:16 -08:00
cc6e92b20a Merge pull request #385 from Hoikas/patch-phailure
Fix some plUruLauncher Probz
2014-01-29 17:41:57 -08:00
fc06d95858 Merge pull request #388 from Hoikas/leaks
Fix some leaks revealed by Coverity
2014-01-23 17:14:16 -08:00
97cff0e8a9 Merge pull request #389 from Mystler/plAvatar
Fixes for plAvatar
2014-01-23 16:59:26 -08:00
cedc2482e3 Fixes for plAvatar 2014-01-23 16:27:11 +01:00
3d1bcf1988 Whoops-a-birdy 2014-01-22 20:59:25 -08:00
5d919f6d28 Fix leak in GetLinkToCity 2014-01-22 19:15:29 -05:00
9e6200507b Fix potential leak in OfferLinkToPlayer 2014-01-22 19:06:51 -05:00
571bdbab01 Fix leak in GetLinkToMyNeighborhood
pyAgeLinkStruct copies the plAgeLinkStruct, so we can create our initial
ALS on the stack and avoid crazy memory logic.
2014-01-22 19:02:23 -05:00