mirror of
https://github.com/libretro/scummvm.git
synced 2024-12-13 04:28:37 +00:00
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:
parent
c44e7d375f
commit
ec06d940a2
@ -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();
|
||||
|
@ -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
|
||||
|
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user