diff options
| author | Eder Bastos <bastos.eder@gmail.com> | 2014-06-21 12:01:16 -0400 |
|---|---|---|
| committer | Eder Bastos <bastos.eder@gmail.com> | 2014-06-21 12:01:16 -0400 |
| commit | b940e69f3bfff1b580cfeea5527623187a37dc85 (patch) | |
| tree | e2b415c1a0f237c7e827254ce99bb1ba0af92ae0 /Source/Android/src/org | |
| parent | fbca397c924e3906e9ab26ec3f967760385cc8d6 (diff) | |
Fix banner scaling in game list.
-In GameListAdapter.java, the existing scaling code is unnecessary and stops Android's built in scaling from doing its job.
-In gamelist...etc.xml, set the icon's width to 100 density-independent pixels (i.e. have android figure out how to make it the right size.)
Diffstat (limited to 'Source/Android/src/org')
| -rw-r--r-- | Source/Android/src/org/dolphinemu/dolphinemu/gamelist/GameListAdapter.java | 2 |
1 files changed, 0 insertions, 2 deletions
diff --git a/Source/Android/src/org/dolphinemu/dolphinemu/gamelist/GameListAdapter.java b/Source/Android/src/org/dolphinemu/dolphinemu/gamelist/GameListAdapter.java index c9922e1adb..fc715455a8 100644 --- a/Source/Android/src/org/dolphinemu/dolphinemu/gamelist/GameListAdapter.java +++ b/Source/Android/src/org/dolphinemu/dolphinemu/gamelist/GameListAdapter.java @@ -65,8 +65,6 @@ public final class GameListAdapter extends ArrayAdapter<GameListItem> if (icon != null) { icon.setImageBitmap(item.getImage()); - icon.getLayoutParams().width = (int) ((860 / context.getResources().getDisplayMetrics().density) + 0.5); - icon.getLayoutParams().height = (int)((340 / context.getResources().getDisplayMetrics().density) + 0.5); } } |
