Files
osu-framework/osu.Framework.Android/AndroidGameWindow.cs
Dan Balasescu f6cc050571 Fix Android compile
Co-authored-by: Susko3 <Susko3@protonmail.com>
2025-08-17 17:04:57 +09:00

27 lines
765 B
C#

// Copyright (c) ppy Pty Ltd <contact@ppy.sh>. Licensed under the MIT Licence.
// See the LICENCE file in the repository root for full licence text.
using System;
using osu.Framework.Platform;
using osu.Framework.Platform.SDL3;
namespace osu.Framework.Android
{
internal class AndroidGameWindow : SDL3MobileWindow
{
public override IntPtr SurfaceHandle => AndroidGameActivity.Surface.Holder?.Surface?.Handle ?? IntPtr.Zero;
public AndroidGameWindow(GraphicsSurfaceType surfaceType, string appName)
: base(surfaceType, appName)
{
}
public override void Create()
{
base.Create();
SafeAreaPadding.BindTo(AndroidGameActivity.Surface.SafeAreaPadding);
}
}
}