mirror of
https://github.com/RetroDECK/ES-DE.git
synced 2024-11-29 17:45: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;
|
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