mirror of
https://github.com/libretro/scummvm.git
synced 2025-02-10 12:55:24 +00:00
MYST3: Remove useless drawBlackBorders method
This commit is contained in:
parent
7174ccc81d
commit
00981d9ab0
@ -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())
|
||||
|
@ -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);
|
||||
|
@ -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);
|
||||
};
|
||||
|
Loading…
x
Reference in New Issue
Block a user