BACKENDS: Explicitly use ellipsis for OSD text if needed

This is the default, so this commit does not change the behaviour.
But this will allow to change the default at a later stage.
This commit is contained in:
Thierry Crozat 2021-07-31 18:29:41 +01:00 committed by Eugene Sandulenko
parent c44e7d375f
commit ec06d940a2
3 changed files with 3 additions and 3 deletions

View File

@ -849,7 +849,7 @@ void OpenGLGraphicsManager::osdMessageUpdateSurface() {
for (uint i = 0; i < osdLines.size(); ++i) {
font->drawString(dst, osdLines[i],
0, i * lineHeight + vOffset + lineSpacing, width,
white, Graphics::kTextAlignCenter);
white, Graphics::kTextAlignCenter, 0, true);
}
_osdMessageSurface->updateGLTexture();

View File

@ -2217,7 +2217,7 @@ void SurfaceSdlGraphicsManager::displayMessageOnOSD(const Common::U32String &msg
font->drawString(&dst, lines[i],
0, 0 + i * lineHeight + vOffset + lineSpacing, width,
SDL_MapRGB(_osdMessageSurface->format, 255, 255, 255),
Graphics::kTextAlignCenter);
Graphics::kTextAlignCenter, 0, true);
}
// Finished drawing, so unlock the OSD message surface

View File

@ -690,7 +690,7 @@ void OSystem_3DS::displayMessageOnOSD(const Common::U32String &msg) {
font->drawString(&_osdMessage, lines[i],
0, 0 + i * lineHeight + vOffset + lineSpacing, width,
_pfDefaultTexture.RGBToColor(255, 255, 255),
Graphics::kTextAlignCenter);
Graphics::kTextAlignCenter, 0, true);
}
_osdMessageEndTime = getMillis(true) + kOSDMessageDuration;