From b940e69f3bfff1b580cfeea5527623187a37dc85 Mon Sep 17 00:00:00 2001 From: Eder Bastos Date: Sat, 21 Jun 2014 12:01:16 -0400 Subject: 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.) --- .../Android/src/org/dolphinemu/dolphinemu/gamelist/GameListAdapter.java | 2 -- 1 file changed, 2 deletions(-) (limited to 'Source/Android/src') 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 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); } } -- cgit v1.2.3