[Scummvm-git-logs] scummvm master -> 19e65ecbf86ee0b4d60b529143018aad162596d5
mgerhardy
noreply at scummvm.org
Wed Jan 18 09:53:06 UTC 2023
This automated email contains information about 1 new commit which have been
pushed to the 'scummvm' repo located at https://github.com/scummvm/scummvm .
Summary:
19e65ecbf8 TWINE: set a clip to reduce the bad effect of bug #12074
Commit: 19e65ecbf86ee0b4d60b529143018aad162596d5
https://github.com/scummvm/scummvm/commit/19e65ecbf86ee0b4d60b529143018aad162596d5
Author: Martin Gerhardy (martin.gerhardy at gmail.com)
Date: 2023-01-18T06:19:43+01:00
Commit Message:
TWINE: set a clip to reduce the bad effect of bug #12074
https://bugs.scummvm.org/ticket/12074
Changed paths:
engines/twine/holomap.cpp
diff --git a/engines/twine/holomap.cpp b/engines/twine/holomap.cpp
index 8fc6f76aaa1..1d0c7d8fdcd 100644
--- a/engines/twine/holomap.cpp
+++ b/engines/twine/holomap.cpp
@@ -616,6 +616,10 @@ void Holomap::holoMap() {
if (redraw) {
redraw = false;
const Common::Rect &rect = _engine->centerOnScreenX(scale(300), 0, scale(330));
+ // clip reduces the bad effect of https://bugs.scummvm.org/ticket/12074
+ // but it's not part of the original code
+ _engine->_interface->saveClip();
+ _engine->_interface->setClip(rect);
_engine->_interface->drawFilledRect(rect, COLOR_BLACK);
_engine->_renderer->setInverseAngleCamera(xRot, yRot, 0);
_engine->_renderer->setLightVector(xRot, yRot, 0);
@@ -624,6 +628,7 @@ void Holomap::holoMap() {
_engine->_renderer->setCameraRotation(0, 0, distance(ZOOM_BIG_HOLO));
drawHoloMap(holomapImagePtr, holomapImageSize);
drawListPos(xRot, yRot, 0, true);
+ _engine->_interface->loadClip();
drawHolomapText(_engine->width() / 2, 25, "HoloMap");
if (automove) {
// draw cursor
More information about the Scummvm-git-logs
mailing list