don't adjust for action bar height

This commit is contained in:
Ahmet Inan 2024-07-03 09:52:45 +02:00
parent 64ce088048
commit 4518a4a0f8

View file

@ -637,8 +637,8 @@ public class MainActivity extends AppCompatActivity {
screenWidthDp /= 2;
else
screenHeightDp -= freqPlotHeightDp;
int actionBarHeightDp = 64;
screenHeightDp -= actionBarHeightDp;
//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);