mirror of
https://github.com/xdsopl/robot36.git
synced 2026-01-14 12:10:30 +01:00
don't adjust for action bar height
This commit is contained in:
parent
64ce088048
commit
4518a4a0f8
|
|
@ -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);
|
||||
|
|
|
|||
Loading…
Reference in a new issue