diff options
Diffstat (limited to 'gui')
-rw-r--r-- | gui/credits.h | 10 | ||||
-rw-r--r-- | gui/updates-dialog.cpp | 6 | ||||
-rw-r--r-- | gui/widget.cpp | 14 |
3 files changed, 23 insertions, 7 deletions
diff --git a/gui/credits.h b/gui/credits.h index d1d3bb2147..79f4516370 100644 --- a/gui/credits.h +++ b/gui/credits.h @@ -58,6 +58,7 @@ static const char *credits[] = { "C1""AGI", "C0""Stuart George", "C0""Matthew Hoops", +"C2""(retired)", "C0""Filippos Karapetis", "C0""Martin Kiewitz", "C0""Pawel Kolodziejski", @@ -173,6 +174,7 @@ static const char *credits[] = { "", "C1""Lastexpress", "C0""Matthew Hoops", +"C2""(retired)", "C0""Jordi Vilalta Prat", "C0""Julien Templier", "", @@ -192,6 +194,7 @@ static const char *credits[] = { "C1""Mohawk", "C0""Bastien Bouclet", "C0""Matthew Hoops", +"C2""(retired)", "C0""Filippos Karapetis", "C0""Alyssa Milburn", "C0""Eugene Sandulenko", @@ -211,6 +214,7 @@ static const char *credits[] = { "", "C1""Pegasus", "C0""Matthew Hoops", +"C2""(retired)", "", "C1""Queen", "C0""David Eriksson", @@ -343,6 +347,7 @@ static const char *credits[] = { "C1""Android", "C0""Andre Heider", "C0""Angus Lees", +"C0""Lubomyr Lisen", "", "C1""Dreamcast", "C0""Marcus Comstedt", @@ -366,6 +371,9 @@ static const char *credits[] = { "C2""(retired)", "C0""Tarek Soliman", "", +"C1""Nintendo 3DS", +"C0""Thomas Edvalson", +"", "C1""Nintendo 64", "C0""Fabio Battaglia", "", @@ -477,7 +485,7 @@ static const char *credits[] = { "C0""Joachim Eberhard", "C2""Numerous contributions to documentation (retired)", "C0""Matthew Hoops", -"C2""Wiki editor", +"C2""Numerous contributions to documentation (retired)", "", "C1""Retired Team Members", "C0""Chris Apers", diff --git a/gui/updates-dialog.cpp b/gui/updates-dialog.cpp index 960b3f397a..b82ecc0402 100644 --- a/gui/updates-dialog.cpp +++ b/gui/updates-dialog.cpp @@ -76,13 +76,13 @@ UpdatesDialog::UpdatesDialog() : Dialog(30, 20, 260, 124) { _y = (screenH - _h) / 2; // Each line is represented by one static text item. - int y = 10; - for (int i = 0; i < lines.size(); i++) { + uint y = 10; + for (uint i = 0; i < lines.size(); i++) { new StaticTextWidget(this, 10, y, maxlineWidth, kLineHeight, lines[i], Graphics::kTextAlignCenter); y += kLineHeight; } - for (int i = 0; i < lines2.size(); i++) { + for (uint i = 0; i < lines2.size(); i++) { new StaticTextWidget(this, 10, y, maxlineWidth2, kLineHeight, lines2[i], Graphics::kTextAlignCenter, 0, ThemeEngine::kFontStyleTooltip); y += kLineHeight; diff --git a/gui/widget.cpp b/gui/widget.cpp index 03540f7b91..dda44604c8 100644 --- a/gui/widget.cpp +++ b/gui/widget.cpp @@ -265,9 +265,17 @@ void StaticTextWidget::setLabel(const Common::String &label) { } void StaticTextWidget::setAlign(Graphics::TextAlign align) { - _align = align; - // TODO: We should automatically redraw when the alignment is changed. - // See setLabel() for more insights. + if (_align != align){ + _align = align; + + // same as setLabel() actually, the text + // would be redrawn on top of the old one so + // we add the CLEARBG flag + setFlags(WIDGET_CLEARBG); + draw(); + clearFlags(WIDGET_CLEARBG); + } + } |