diff --git a/LiveWallpaper.App/Package.appxmanifest b/LiveWallpaper.App/Package.appxmanifest index 6f15d4d3..8a04317e 100644 --- a/LiveWallpaper.App/Package.appxmanifest +++ b/LiveWallpaper.App/Package.appxmanifest @@ -1,6 +1,6 @@  - + 巨应动态壁纸 巨应工作室 MscoderStudio diff --git a/LiveWallpaper/Res/setting.desc.json b/LiveWallpaper/Res/setting.desc.json index a403695b..a1340928 100644 --- a/LiveWallpaper/Res/setting.desc.json +++ b/LiveWallpaper/Res/setting.desc.json @@ -57,7 +57,7 @@ ] }, "VideoAspect": { - "type": "text", + "type": "string", "lanKey": "setting_videoAspect", "descLanKey": "setting_videoAspect_desc" } diff --git a/LiveWallpaperEngineLib/Controls/RenderForm.cs b/LiveWallpaperEngineLib/Controls/RenderForm.cs index 01016163..a16c6593 100644 --- a/LiveWallpaperEngineLib/Controls/RenderForm.cs +++ b/LiveWallpaperEngineLib/Controls/RenderForm.cs @@ -77,13 +77,24 @@ public Wallpaper Wallpaper internal void SetAspect(string aspect) { - if (player != null) + try { - //var test = player.API.GetPropertyString("video-aspect"); - if (string.IsNullOrEmpty(aspect)) - player.API.SetPropertyString("video-aspect", "-1.000000"); - else - player.API.SetPropertyString("video-aspect", aspect); + if (player != null) + { + //var test = player.API.GetPropertyString("video-aspect"); + if (string.IsNullOrEmpty(aspect)) + player.API.SetPropertyString("video-aspect", "-1.000000"); + else + { + //兼容中文分号 + aspect = aspect.Replace(":", ":"); + player.API.SetPropertyString("video-aspect", aspect); + } + } + } + catch (Exception ex) + { + System.Diagnostics.Debug.WriteLine(ex); } }