mirror of
https://github.com/elasota/Aerofoil.git
synced 2025-09-23 06:53:43 +00:00
Various improvements toward getting high scores working again.
This commit is contained in:
@@ -19,8 +19,22 @@ namespace PortabilityLayer
|
||||
return true;
|
||||
}
|
||||
|
||||
void LabelWidget::SetString(const PLPasStr &str)
|
||||
{
|
||||
m_text.Set(str.Length(), str.Chars());
|
||||
}
|
||||
|
||||
PLPasStr LabelWidget::GetString() const
|
||||
{
|
||||
return m_text.ToShortStr();
|
||||
}
|
||||
|
||||
void LabelWidget::DrawControl(DrawSurface *surface)
|
||||
{
|
||||
// FIXME: This is kind of bad
|
||||
surface->SetForeColor(StdColors::White());
|
||||
surface->FillRect(m_rect);
|
||||
|
||||
surface->SetSystemFont(12, PortabilityLayer::FontFamilyFlag_Bold);
|
||||
surface->SetForeColor(StdColors::Black());
|
||||
|
||||
|
Reference in New Issue
Block a user