mirror of
https://github.com/libretro/scummvm.git
synced 2024-12-16 06:39:17 +00:00
GRAPHICS: MACGUI: Lessen size of paragraph spacing
This commit is contained in:
parent
fc39646963
commit
6862a4934c
@ -377,16 +377,23 @@ int MacText::getLineWidth(int line, bool enforce) {
|
||||
int width = 0;
|
||||
int height = 0;
|
||||
|
||||
bool hastext = false;
|
||||
|
||||
for (uint i = 0; i < _textLines[line].chunks.size(); i++) {
|
||||
if (enforce)
|
||||
_textLines[line].chunks[i].font = nullptr;
|
||||
|
||||
if (!_textLines[line].chunks[i].text.empty())
|
||||
if (!_textLines[line].chunks[i].text.empty()) {
|
||||
width += _textLines[line].chunks[i].getFont()->getStringWidth(_textLines[line].chunks[i].text);
|
||||
hastext = true;
|
||||
}
|
||||
|
||||
height = MAX(height, _textLines[line].chunks[i].getFont()->getFontHeight());
|
||||
}
|
||||
|
||||
if (!hastext)
|
||||
height -= 3;
|
||||
|
||||
_textLines[line].width = width;
|
||||
_textLines[line].height = height;
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user