[Scummvm-git-logs] scummvm master -> 7507873635cd5be2b5a38f9745dee5afb6d4d7a0

eriktorbjorn noreply at scummvm.org
Mon Dec 20 09:42:24 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:
7507873635 SHERLOCK: Fix scroll position bar glitch


Commit: 7507873635cd5be2b5a38f9745dee5afb6d4d7a0
    https://github.com/scummvm/scummvm/commit/7507873635cd5be2b5a38f9745dee5afb6d4d7a0
Author: Torbjörn Andersson (eriktorbjorn at users.sourceforge.net)
Date: 2021-12-20T10:40:43+01:00

Commit Message:
SHERLOCK: Fix scroll position bar glitch

Changed paths:
    engines/sherlock/tattoo/widget_base.cpp


diff --git a/engines/sherlock/tattoo/widget_base.cpp b/engines/sherlock/tattoo/widget_base.cpp
index 9241606abd..6af27de997 100644
--- a/engines/sherlock/tattoo/widget_base.cpp
+++ b/engines/sherlock/tattoo/widget_base.cpp
@@ -269,7 +269,7 @@ void WidgetBase::drawScrollBar(int index, int pageSize, int count) {
 	int barY = (count <= pageSize) ? r.top + BUTTON_SIZE : r.top + BUTTON_SIZE +
 		(r.height() - BUTTON_SIZE * 2 - barHeight) * index / (count - pageSize);
 
-	_surface.fillRect(Common::Rect(r.left + 2, barY + 2, r.right - 2, barY + barHeight - 3), INFO_MIDDLE);
+	_surface.fillRect(Common::Rect(r.left + 2, barY + 2, r.right - 2, barY + barHeight - 2), INFO_MIDDLE);
 	ui.drawDialogRect(_surface, Common::Rect(r.left, barY, r.right, barY + barHeight), true);
 }
 




More information about the Scummvm-git-logs mailing list