[Scummvm-git-logs] scummvm master -> 0284f3ce210abe26c2b9c583037284500c26a286
sev-
noreply at scummvm.org
Fri Apr 3 14:07:31 UTC 2026
This automated email contains information about 1 new commit which have been
pushed to the 'scummvm' repo located at https://api.github.com/repos/scummvm/scummvm .
Summary:
0284f3ce21 GUI: Do not show hand cursor over pictures in the Help dialog
Commit: 0284f3ce210abe26c2b9c583037284500c26a286
https://github.com/scummvm/scummvm/commit/0284f3ce210abe26c2b9c583037284500c26a286
Author: Eugene Sandulenko (sev at scummvm.org)
Date: 2026-04-03T16:06:59+02:00
Commit Message:
GUI: Do not show hand cursor over pictures in the Help dialog
Changed paths:
gui/widgets/richtext.cpp
diff --git a/gui/widgets/richtext.cpp b/gui/widgets/richtext.cpp
index 557e149aef4..dc78201fb92 100644
--- a/gui/widgets/richtext.cpp
+++ b/gui/widgets/richtext.cpp
@@ -125,14 +125,14 @@ void RichTextWidget::handleMouseUp(int x, int y, int button, int clickCount) {
void RichTextWidget::handleMouseMoved(int x, int y, int button) {
if (_txtWnd) {
- Common::U32String link = _txtWnd->getMouseLink(x - _innerMargin + _scrolledX, y - _innerMargin + _scrolledY);
+ Common::String link = _txtWnd->getMouseLink(x - _innerMargin + _scrolledX, y - _innerMargin + _scrolledY).encode();
- if (!link.empty())
+ if (!link.empty() && link.hasPrefixIgnoreCase("http"))
g_gui.theme()->setActiveCursor(GUI::ThemeEngine::kCursorIndex);
else
g_gui.theme()->setActiveCursor(GUI::ThemeEngine::kCursorNormal);
- }
-
+ }
+
if (_mouseDownStartY == 0 || _mouseDownY == y || !_txtWnd)
return;
@@ -149,7 +149,7 @@ void RichTextWidget::handleMouseMoved(int x, int y, int button) {
recalc();
_verticalScroll->recalc();
- // Update scrollbar position
+ // Update scrollbar position
_verticalScroll->_currentPos = _scrolledY;
_verticalScroll->checkBounds(_verticalScroll->_currentPos);
More information about the Scummvm-git-logs
mailing list