Fix jagged font in games list

This commit is contained in:
pjft 2019-03-03 19:13:10 +00:00
parent 3b461470c4
commit 108cd714ea

View file

@ -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;