mirror of
https://github.com/ppy/osu.git
synced 2024-11-13 15:27:30 +08:00
Adjust pragma disable to fix Android compile
This commit is contained in:
parent
ec4f3577c0
commit
19ea484240
@ -72,9 +72,9 @@ namespace osu.Android
|
||||
Debug.Assert(Resources?.DisplayMetrics != null);
|
||||
|
||||
Point displaySize = new Point();
|
||||
#pragma warning disable 618 // GetSize is deprecated
|
||||
#pragma warning disable CA1422 // GetSize is deprecated
|
||||
WindowManager.DefaultDisplay.GetSize(displaySize);
|
||||
#pragma warning restore 618
|
||||
#pragma warning restore CA1422
|
||||
float smallestWidthDp = Math.Min(displaySize.X, displaySize.Y) / Resources.DisplayMetrics.Density;
|
||||
bool isTablet = smallestWidthDp >= 600f;
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user