Merge pull request #636 from SeannyM/android-filter
[Android] Enable filtering onscreen buttons
This commit is contained in:
commit
11a0f5ddc5
|
@ -54,7 +54,7 @@ public final class InputOverlay extends SurfaceView implements OnTouchListener
|
|||
Bitmap bitmapResized = Bitmap.createScaledBitmap(bitmap,
|
||||
(int)(dm.heightPixels * scale),
|
||||
(int)(dm.heightPixels * scale),
|
||||
false);
|
||||
true);
|
||||
return bitmapResized;
|
||||
}
|
||||
|
||||
|
|
|
@ -54,7 +54,7 @@ public final class OverlayConfigButton extends Button implements OnTouchListener
|
|||
Bitmap bitmapResized = Bitmap.createScaledBitmap(b,
|
||||
(int)(displayMetrics.heightPixels * scale),
|
||||
(int)(displayMetrics.heightPixels * scale),
|
||||
false);
|
||||
true);
|
||||
|
||||
return new BitmapDrawable(getResources(), bitmapResized);
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue