GRAPHICS: move start + end to Graphics::TextAlign
This commit is contained in:
parent
4fc9c11bbe
commit
51d95f8978
14 changed files with 70 additions and 93 deletions
|
@ -466,4 +466,15 @@ Common::String Font::handleEllipsis(const Common::String &input, int w) const {
|
|||
}
|
||||
}
|
||||
|
||||
TextAlign convertTextAlignH(TextAlign alignH, bool rtl) {
|
||||
switch (alignH) {
|
||||
case kTextAlignStart:
|
||||
return rtl ? kTextAlignRight : kTextAlignLeft;
|
||||
case kTextAlignEnd:
|
||||
return rtl ? kTextAlignLeft : kTextAlignRight;
|
||||
default:
|
||||
return alignH;
|
||||
}
|
||||
}
|
||||
|
||||
} // End of namespace Graphics
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue