mirror of
https://github.com/xdsopl/robot36.git
synced 2026-01-19 22:40:16 +01:00
reduce by action bar height estimate
This commit is contained in:
parent
21ac7ea2f5
commit
f7ac973153
|
|
@ -591,6 +591,8 @@ public class MainActivity extends AppCompatActivity {
|
|||
screenWidthDp /= 2;
|
||||
else
|
||||
screenHeightDp -= freqPlotHeightDp;
|
||||
int actionBarHeightDp = 64;
|
||||
screenHeightDp -= actionBarHeightDp;
|
||||
int width = scopeBuffer.width;
|
||||
int height = Math.min(Math.max((width * screenHeightDp) / screenWidthDp, 496), scopeBuffer.height / 2);
|
||||
scopeBitmap = Bitmap.createBitmap(width, height, Bitmap.Config.ARGB_8888);
|
||||
|
|
|
|||
Loading…
Reference in a new issue