From b940e69f3bfff1b580cfeea5527623187a37dc85 Mon Sep 17 00:00:00 2001 From: Eder Bastos Date: Sat, 21 Jun 2014 12:01:16 -0400 Subject: [PATCH] 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/res/layout/gamelist_folderbrowser_list_item.xml | 4 ++-- .../org/dolphinemu/dolphinemu/gamelist/GameListAdapter.java | 2 -- 2 files changed, 2 insertions(+), 4 deletions(-) diff --git a/Source/Android/res/layout/gamelist_folderbrowser_list_item.xml b/Source/Android/res/layout/gamelist_folderbrowser_list_item.xml index f7c63371a3..2d34825690 100644 --- a/Source/Android/res/layout/gamelist_folderbrowser_list_item.xml +++ b/Source/Android/res/layout/gamelist_folderbrowser_list_item.xml @@ -7,8 +7,8 @@ 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); } }