diff options
author | Andrei Karas <akaras@inbox.ru> | 2010-10-12 19:59:25 +0300 |
---|---|---|
committer | Andrei Karas <akaras@inbox.ru> | 2010-10-16 20:44:37 +0300 |
commit | 0d3d7c908ef6d294b14f55f09c9d83767fbc5f32 (patch) | |
tree | 35a175491e6d08cdbd79ab6c9de7e13560132236 /src/client.cpp | |
parent | bdf409c9c4ce083881133879947cc0a6c2cce0f1 (diff) | |
download | mana-0d3d7c908ef6d294b14f55f09c9d83767fbc5f32.tar.gz mana-0d3d7c908ef6d294b14f55f09c9d83767fbc5f32.tar.bz2 mana-0d3d7c908ef6d294b14f55f09c9d83767fbc5f32.tar.xz mana-0d3d7c908ef6d294b14f55f09c9d83767fbc5f32.zip |
Implement opacity cache for SDL surfaces.
Enabled by default.
Can be disabled in configuration option "alphaCache" if set it to 0.
Reviewed-by: Bertram
Diffstat (limited to 'src/client.cpp')
-rw-r--r-- | src/client.cpp | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/client.cpp b/src/client.cpp index 9bf761a0..2d5bdc3f 100644 --- a/src/client.cpp +++ b/src/client.cpp @@ -251,6 +251,8 @@ Client::Client(const Options &options): "Exiting.", mLocalDataDir.c_str())); } + Image::setEnableAlphaCache(config.getValue("alphaCache", true)); + #if defined __APPLE__ CFBundleRef mainBundle = CFBundleGetMainBundle(); CFURLRef resourcesURL = CFBundleCopyResourcesDirectoryURL(mainBundle); |