diff options
author | Andrei Karas <akaras@inbox.ru> | 2011-08-07 19:07:15 +0300 |
---|---|---|
committer | Andrei Karas <akaras@inbox.ru> | 2011-08-07 21:56:29 +0300 |
commit | 21277ad5c877d90680b757b058a3759e8f8b5559 (patch) | |
tree | 71089c982d94f592b27ed690a5d52e013803ae17 /src/map.cpp | |
parent | ae1ba709d91bd59d05da7b3e434658ec652f2355 (diff) | |
download | manaplus-21277ad5c877d90680b757b058a3759e8f8b5559.tar.gz manaplus-21277ad5c877d90680b757b058a3759e8f8b5559.tar.bz2 manaplus-21277ad5c877d90680b757b058a3759e8f8b5559.tar.xz manaplus-21277ad5c877d90680b757b058a3759e8f8b5559.zip |
Add auto adjust perfomance ability.
Diffstat (limited to 'src/map.cpp')
-rw-r--r-- | src/map.cpp | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/src/map.cpp b/src/map.cpp index 0903ef0e2..5723d5ec8 100644 --- a/src/map.cpp +++ b/src/map.cpp @@ -642,6 +642,12 @@ Map::Map(int width, int height, int tileWidth, int tileHeight): config.addListener("guialpha", this); config.addListener("beingopacity", this); + mOpacity = config.getFloatValue("guialpha"); + if (mOpacity != 1.0f) + mBeingOpacity = config.getBoolValue("beingopacity"); + else + mBeingOpacity = false; + #ifdef USE_OPENGL mOpenGL = config.getIntValue("opengl"); #else |