mirror of
https://github.com/RetroDECK/ES-DE.git
synced 2024-11-26 08:05:38 +00:00
Merge pull request #539 from pjft/fix-jagged-font
Fix jagged font in games list
This commit is contained in:
commit
6bdf31a486
|
@ -200,7 +200,7 @@ void TextListComponent<T>::render(const Transform4x4f& parentTrans)
|
|||
offset[0] = mHorizontalMargin;
|
||||
break;
|
||||
case ALIGN_CENTER:
|
||||
offset[0] = (mSize.x() - entry.data.textCache->metrics.size.x()) / 2;
|
||||
offset[0] = (int)((mSize.x() - entry.data.textCache->metrics.size.x()) / 2);
|
||||
if(offset[0] < mHorizontalMargin)
|
||||
offset[0] = mHorizontalMargin;
|
||||
break;
|
||||
|
|
Loading…
Reference in a new issue