MYST3: Remove useless drawBlackBorders method

This commit is contained in:
Bastien Bouclet 2015-04-19 09:14:34 +02:00
parent 7174ccc81d
commit 00981d9ab0
3 changed files with 0 additions and 14 deletions

View File

@ -652,8 +652,6 @@ void Myst3Engine::drawFrame(bool noSwap) {
SunSpot flare = computeSunspotsIntensity(pitch, heading);
if (flare.intensity >= 0)
_scene->drawSunspotFlare(flare);
_scene->drawBlackBorders();
}
if (isInventoryVisible())

View File

@ -93,17 +93,6 @@ void Scene::updateCamera(Common::Point &mouse) {
_vm->_state->setCameraHeading((int32)heading);
}
void Scene::drawBlackBorders() {
Common::Rect top = Common::Rect(Renderer::kOriginalWidth, Renderer::kTopBorderHeight);
Common::Rect bottom = Common::Rect(Renderer::kOriginalWidth, Renderer::kBottomBorderHeight);
bottom.translate(0, Renderer::kTopBorderHeight + Renderer::kFrameHeight);
uint32 black = Graphics::ARGBToColor< Graphics::ColorMasks<8888> >(255, 0, 0, 0);
_vm->_gfx->drawRect2D(top, black);
_vm->_gfx->drawRect2D(bottom, black);
}
void Scene::drawSunspotFlare(const SunSpot &s) {
Common::Rect frame = Common::Rect(Renderer::kOriginalWidth, Renderer::kFrameHeight);
frame.translate(0, Renderer::kTopBorderHeight);

View File

@ -44,7 +44,6 @@ public:
void updateMouseSpeed();
void drawBlackBorders();
void drawSunspotFlare(const SunSpot &s);
float distanceToZone(float spotHeading, float spotPitch, float spotRadius, float heading, float pitch);
};