mirror of
https://github.com/RetroDECK/ES-DE.git
synced 2024-11-22 22:25:38 +00:00
Fix jagged font in games list
This commit is contained in:
parent
3b461470c4
commit
108cd714ea
|
@ -200,7 +200,7 @@ void TextListComponent<T>::render(const Transform4x4f& parentTrans)
|
||||||
offset[0] = mHorizontalMargin;
|
offset[0] = mHorizontalMargin;
|
||||||
break;
|
break;
|
||||||
case ALIGN_CENTER:
|
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)
|
if(offset[0] < mHorizontalMargin)
|
||||||
offset[0] = mHorizontalMargin;
|
offset[0] = mHorizontalMargin;
|
||||||
break;
|
break;
|
||||||
|
|
Loading…
Reference in a new issue