mirror of
https://github.com/hrydgard/ppsspp.git
synced 2026-12-05 20:24:01 +01:00
Make the text and images centered.
This commit is contained in:
1 parent
d18253e7d5
commit
fc64b9a64f
1 file changed
+8
-3
@@ -73,11 +73,16 @@ void TouchControlVisibilityScreen::CreateViews() {
|
||||
row->Add(new CheckBox(i->second, "", "", new LinearLayoutParams(50, WRAP_CONTENT)));
|
||||
|
||||
imageFinder = keyImages.find(i->first);
|
||||
|
||||
Choice *choice;
|
||||
|
||||
if (imageFinder != keyImages.end()) {
|
||||
row->Add(new Choice(keyImages[imageFinder->first], new LinearLayoutParams(1.0f)));
|
||||
choice = new Choice(keyImages[imageFinder->first], new LinearLayoutParams(1.0f));
|
||||
choice->SetCentered(true);
|
||||
row->Add(choice);
|
||||
} else {
|
||||
row->Add(new Choice(mc->T(i->first.c_str()), new LinearLayoutParams(1.0f)));
|
||||
choice = new Choice(mc->T(i->first.c_str()), new LinearLayoutParams(1.0f));
|
||||
choice->SetCentered(true);
|
||||
row->Add(choice);
|
||||
}
|
||||
grid->Add(row);
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user