[Scummvm-git-logs] scummvm master -> cd8816428e11097131c3552e4eb635c11ce74b50

antoniou79 antoniou at cti.gr
Fri Aug 2 01:00:14 CEST 2019


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:
cd8816428e BLADERUNNER: Make use of new text wrapping functionality


Commit: cd8816428e11097131c3552e4eb635c11ce74b50
    https://github.com/scummvm/scummvm/commit/cd8816428e11097131c3552e4eb635c11ce74b50
Author: Thanasis Antoniou (a.antoniou79 at gmail.com)
Date: 2019-08-02T01:59:22+03:00

Commit Message:
BLADERUNNER: Make use of new text wrapping functionality

Even width length for subtitle lines, but prioritize explicit new lines if present

Changed paths:
    engines/bladerunner/subtitles.cpp


diff --git a/engines/bladerunner/subtitles.cpp b/engines/bladerunner/subtitles.cpp
index df38552..bd4a758 100644
--- a/engines/bladerunner/subtitles.cpp
+++ b/engines/bladerunner/subtitles.cpp
@@ -368,7 +368,7 @@ void Subtitles::draw(Graphics::Surface &s) {
 	if (_currentText != _prevText) {
 		lines.clear();
 		_prevText = _currentText;
-		_font->wordWrapText(_currentText, kTextMaxWidth, lines);
+		_font->wordWrapText(_currentText, kTextMaxWidth, lines, 0, true, true);
 	}
 
 	int y = s.h - (kMarginBottom + MAX(kPreferedLine, lines.size()) * _font->getFontHeight());





More information about the Scummvm-git-logs mailing list