diff options
Diffstat (limited to 'src/map.cpp')
-rw-r--r-- | src/map.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/map.cpp b/src/map.cpp index 1de22456..368b4e2a 100644 --- a/src/map.cpp +++ b/src/map.cpp @@ -252,6 +252,7 @@ void Map::initializeAmbientLayers() ambientLayer->mSpeedX = getFloatProperty(name + "scrollX"); ambientLayer->mSpeedY = getFloatProperty(name + "scrollY"); ambientLayer->mMask = getIntProperty(name + "mask", 1); + ambientLayer->mKeepRatio = getBoolProperty(name + "keepratio"); list.push_back(ambientLayer); @@ -501,7 +502,7 @@ void Map::drawAmbientLayers(Graphics *graphics, LayerType type, if ((layer->mMask & mMask) == 0) continue; - layer->draw(graphics, graphics->getWidth(), graphics->getHeight()); + layer->draw(graphics); // Detail 1: only one overlay, higher: all overlays if (detail == 1) |