DroidFish: Don't use largest font size for status text in portrait mode.

This commit is contained in:
Peter Osterlund 2012-08-31 23:09:44 +00:00
parent b0a2f9f317
commit ad349a36b1

View File

@ -786,7 +786,11 @@ public class DroidFish extends Activity implements GUIInterface {
int fontSize = getIntSetting("fontSize", 12);
figNotation = Typeface.createFromAsset(getAssets(), "fonts/DroidFishChessNotationDark.otf");
status.setTextSize(fontSize);
int statusFontSize = fontSize;
Configuration config = getResources().getConfiguration();
if (config.orientation == Configuration.ORIENTATION_PORTRAIT)
statusFontSize = Math.min(statusFontSize, 16);
status.setTextSize(statusFontSize);
moveList.setTextSize(fontSize);
thinking.setTextSize(fontSize);
soundEnabled = settings.getBoolean("soundEnabled", false);