JANITORIAL: Minor formatting fixes
This commit is contained in:
parent
c9b8cb1a0e
commit
627e9457c4
1 changed files with 5 additions and 5 deletions
|
@ -99,7 +99,7 @@ void GridItemWidget::drawWidget() {
|
||||||
for (int i = 0; i < linesInThumb; ++i) {
|
for (int i = 0; i < linesInThumb; ++i) {
|
||||||
g_gui.theme()->drawText(Common::Rect(_x, _y + ((thumbHeight - (linesInThumb - 2 * i) * kLineHeight)) / 2,
|
g_gui.theme()->drawText(Common::Rect(_x, _y + ((thumbHeight - (linesInThumb - 2 * i) * kLineHeight)) / 2,
|
||||||
_x + thumbWidth, _y + ((thumbHeight - (linesInThumb - 2 * i) * kLineHeight)) / 2 + kLineHeight),
|
_x + thumbWidth, _y + ((thumbHeight - (linesInThumb - 2 * i) * kLineHeight)) / 2 + kLineHeight),
|
||||||
titleLines[i], GUI::ThemeEngine::kStateEnabled ,Graphics::kTextAlignCenter,
|
titleLines[i], GUI::ThemeEngine::kStateEnabled, Graphics::kTextAlignCenter,
|
||||||
ThemeEngine::kTextInversionNone, 0, true, ThemeEngine::kFontStyleNormal,
|
ThemeEngine::kTextInversionNone, 0, true, ThemeEngine::kFontStyleNormal,
|
||||||
ThemeEngine::kFontColorAlternate, false);
|
ThemeEngine::kFontColorAlternate, false);
|
||||||
}
|
}
|
||||||
|
@ -125,12 +125,12 @@ void GridItemWidget::drawWidget() {
|
||||||
titleLines.push_back(U32String());
|
titleLines.push_back(U32String());
|
||||||
} else if (titleLines.size() > 2) {
|
} else if (titleLines.size() > 2) {
|
||||||
titleLines[1].erase(titleLines[1].size() - 3);
|
titleLines[1].erase(titleLines[1].size() - 3);
|
||||||
titleLines[1]+=U32String("...");
|
titleLines[1] += U32String("...");
|
||||||
}
|
}
|
||||||
g_gui.theme()->drawText(Common::Rect(_x, _y + thumbHeight, _x + thumbWidth, _y + thumbHeight + kLineHeight),
|
g_gui.theme()->drawText(Common::Rect(_x, _y + thumbHeight, _x + thumbWidth, _y + thumbHeight + kLineHeight),
|
||||||
titleLines[0], GUI::ThemeEngine::kStateEnabled ,Graphics::kTextAlignCenter);
|
titleLines[0], GUI::ThemeEngine::kStateEnabled, Graphics::kTextAlignCenter);
|
||||||
g_gui.theme()->drawText(Common::Rect(_x, _y + thumbHeight + kLineHeight, _x + thumbWidth, _y + thumbHeight + 2 * kLineHeight),
|
g_gui.theme()->drawText(Common::Rect(_x, _y + thumbHeight + kLineHeight, _x + thumbWidth, _y + thumbHeight + 2 * kLineHeight),
|
||||||
titleLines[1], GUI::ThemeEngine::kStateEnabled ,Graphics::kTextAlignCenter);
|
titleLines[1], GUI::ThemeEngine::kStateEnabled, Graphics::kTextAlignCenter);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -433,7 +433,7 @@ void GridWidget::reloadThumbnails() {
|
||||||
}
|
}
|
||||||
|
|
||||||
void GridWidget::loadFlagIcons() {
|
void GridWidget::loadFlagIcons() {
|
||||||
const Common::LanguageDescription *l =Common::g_languages;
|
const Common::LanguageDescription *l = Common::g_languages;
|
||||||
for (; l->code; ++l) {
|
for (; l->code; ++l) {
|
||||||
String path = String::format("%s/%s.svg", _iconDir.c_str(), l->code);
|
String path = String::format("%s/%s.svg", _iconDir.c_str(), l->code);
|
||||||
Graphics::ManagedSurface *gfx = loadSurfaceFromFile(path);
|
Graphics::ManagedSurface *gfx = loadSurfaceFromFile(path);
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue