[Scummvm-git-logs] scummvm branch-2-5 -> e446215fecc635d539937aeb425e94891bb48668

mgerhardy noreply at scummvm.org
Mon Nov 29 15:12:43 UTC 2021


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:
e446215fec TWINE: Rendering artifacts if 3d model is clipped


Commit: e446215fecc635d539937aeb425e94891bb48668
    https://github.com/scummvm/scummvm/commit/e446215fecc635d539937aeb425e94891bb48668
Author: Martin Gerhardy (martin.gerhardy at gmail.com)
Date: 2021-11-29T16:10:13+01:00

Commit Message:
TWINE: Rendering artifacts if 3d model is clipped

https://bugs.scummvm.org/ticket/12020

Changed paths:
    engines/twine/renderer/renderer.cpp


diff --git a/engines/twine/renderer/renderer.cpp b/engines/twine/renderer/renderer.cpp
index bd4cbf2b5d..7389f1aea4 100644
--- a/engines/twine/renderer/renderer.cpp
+++ b/engines/twine/renderer/renderer.cpp
@@ -1054,7 +1054,7 @@ bool Renderer::prepareCircle(int32 x, int32 y, int32 radius) {
 	int16 ctop = clip.top;
 	int16 cbottom = clip.bottom;
 
-	if (left <= cright && bottom >= cleft && right <= cbottom && top >= ctop) {
+	if (left <= cright && right >= cleft && bottom <= cbottom && top >= ctop) {
 		if (left < cleft) {
 			left = cleft;
 		}




More information about the Scummvm-git-logs mailing list