diff options
author | Yohann Ferreira <yohann_dot_ferreira_at_orange_dot_efer> | 2010-10-22 12:52:35 +0200 |
---|---|---|
committer | Yohann Ferreira <yohann_dot_ferreira_at_orange_dot_efer> | 2010-10-22 12:52:35 +0200 |
commit | dbac793645654ac6715e6adecfd9d4a4a1fd8551 (patch) | |
tree | 52550aeeb8caec936897a792236300f86aad3884 /src/map.cpp | |
parent | a9bcae9f81d97f67ab21cd26a099449cf0746137 (diff) | |
download | mana-dbac793645654ac6715e6adecfd9d4a4a1fd8551.tar.gz mana-dbac793645654ac6715e6adecfd9d4a4a1fd8551.tar.bz2 mana-dbac793645654ac6715e6adecfd9d4a4a1fd8551.tar.xz mana-dbac793645654ac6715e6adecfd9d4a4a1fd8551.zip |
Turned the OpenGL and disable transparency options as static members.
- Now OpenGL and the transparency disabling are set at startup and
not read again for displaying graphics, preventing graphic errors
before startup.
- We also agreed long time ago that SDL specific functions
should have a SDL prefix. The header has been rearranged a bit
to do so.
- Also fixed a possible discrepancy in the hasAlphaChannel() function.
Reviewed-by: CodyMartin.
Resolves: Mana-Mantis: #260.
Diffstat (limited to 'src/map.cpp')
-rw-r--r-- | src/map.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/map.cpp b/src/map.cpp index 2de0a4a8..f845f2ff 100644 --- a/src/map.cpp +++ b/src/map.cpp @@ -331,7 +331,7 @@ void Map::draw(Graphics *graphics, int scrollX, int scrollY) } // If the transparency hasn't been disabled, - if (config.getValue("opengl", false) || !config.getValue("lowcpu", true)) + if (Image::useOpenGL() || !Image::SDLisTransparencyDisabled()) { // We draw beings with a lower opacity to make them visible // even when covered by a wall or some other elements... |