mirror of
https://github.com/elasota/Aerofoil.git
synced 2025-12-16 04:50:32 +00:00
Add text anti-aliasing, disable arcade mode
This commit is contained in:
@@ -62,6 +62,6 @@ namespace PortabilityLayer
|
||||
surface->SetSystemFont(12, PortabilityLayer::FontFamilyFlag_Bold);
|
||||
int32_t x = (m_rect.left + m_rect.right - static_cast<int32_t>(surface->MeasureString(m_text.ToShortStr()))) / 2;
|
||||
int32_t y = (m_rect.top + m_rect.bottom + static_cast<int32_t>(surface->MeasureFontAscender())) / 2;
|
||||
surface->DrawString(Point::Create(x, y), m_text.ToShortStr());
|
||||
surface->DrawString(Point::Create(x, y), m_text.ToShortStr(), true);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user