[Scummvm-git-logs] scummvm master -> e94d467c5b3310b6b8b13690c927e99779bc822c
AndywinXp
noreply at scummvm.org
Sun Jul 17 12:39:32 UTC 2022
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:
e94d467c5b SCUMM: v7-8: Make blastText rect taller by one pixel
Commit: e94d467c5b3310b6b8b13690c927e99779bc822c
https://github.com/scummvm/scummvm/commit/e94d467c5b3310b6b8b13690c927e99779bc822c
Author: AndywinXp (andywinxp at gmail.com)
Date: 2022-07-17T14:39:24+02:00
Commit Message:
SCUMM: v7-8: Make blastText rect taller by one pixel
This solves an issue where some fonts would go out of rect and the screen update
would leak those extraneous pixels (e.g. commas of the small font during the FT credits).
Changed paths:
engines/scumm/string_v7.cpp
diff --git a/engines/scumm/string_v7.cpp b/engines/scumm/string_v7.cpp
index e774259331d..fe03619a76b 100644
--- a/engines/scumm/string_v7.cpp
+++ b/engines/scumm/string_v7.cpp
@@ -226,7 +226,7 @@ void TextRenderer_v7::drawString(const char *str, byte *buffer, Common::Rect &cl
clipRect.left = (flags & kStyleAlignCenter) ? x - maxWidth / 2 : ((flags & kStyleAlignRight) ? x - maxWidth : x);
clipRect.right = MIN<int>(clipRect.right, clipRect.left + maxWidth);
clipRect.top = y2;
- clipRect.bottom = y;
+ clipRect.bottom = y + 1;
}
void TextRenderer_v7::drawStringWrap(const char *str, byte *buffer, Common::Rect &clipRect, int x, int y, int pitch, int16 col, TextStyleFlags flags) {
@@ -377,7 +377,7 @@ void TextRenderer_v7::drawStringWrap(const char *str, byte *buffer, Common::Rect
clipRect.left = (flags & kStyleAlignCenter) ? x - maxWidth / 2 : ((flags & kStyleAlignRight) ? x - maxWidth : x);
clipRect.right = MIN<int>(clipRect.right, clipRect.left + maxWidth);
clipRect.top = y2;
- clipRect.bottom = y;
+ clipRect.bottom = y + 1;
}
Common::Rect TextRenderer_v7::calcStringDimensions(const char *str, int x, int y, TextStyleFlags flags) {
More information about the Scummvm-git-logs
mailing list