From 0d3d7c908ef6d294b14f55f09c9d83767fbc5f32 Mon Sep 17 00:00:00 2001 From: Andrei Karas Date: Tue, 12 Oct 2010 19:59:25 +0300 Subject: Implement opacity cache for SDL surfaces. Enabled by default. Can be disabled in configuration option "alphaCache" if set it to 0. Reviewed-by: Bertram --- src/client.cpp | 2 ++ 1 file changed, 2 insertions(+) (limited to 'src/client.cpp') 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); -- cgit v1.2.3-60-g2f50