[Android] Enable filtering onscreen buttons
This commit is contained in:
parent
51dff5a74e
commit
304d9ccd58
|
@ -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