Skip to content

Commit 71a2531

Browse files
committed
发布
1 parent 3f429f2 commit 71a2531

File tree

3 files changed

+19
-8
lines changed

3 files changed

+19
-8
lines changed

LiveWallpaper.App/Package.appxmanifest

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
<?xml version="1.0" encoding="utf-8"?>
22
<Package xmlns:uap5="http://schemas.microsoft.com/appx/manifest/uap/windows10/5" xmlns="http://schemas.microsoft.com/appx/manifest/foundation/windows10" xmlns:mp="http://schemas.microsoft.com/appx/2014/phone/manifest" xmlns:uap="http://schemas.microsoft.com/appx/manifest/uap/windows10" xmlns:rescap="http://schemas.microsoft.com/appx/manifest/foundation/windows10/restrictedcapabilities" IgnorableNamespaces="uap mp rescap">
3-
<Identity Name="24765mscoder.47921C962EDAD" Publisher="CN=49BC8659-1B4C-4520-B1FB-ED98CFA366C4" Version="1.1.17.0" />
3+
<Identity Name="24765mscoder.47921C962EDAD" Publisher="CN=49BC8659-1B4C-4520-B1FB-ED98CFA366C4" Version="1.1.20.0" />
44
<Properties>
55
<DisplayName>巨应动态壁纸</DisplayName>
66
<PublisherDisplayName>巨应工作室 MscoderStudio</PublisherDisplayName>

LiveWallpaper/Res/setting.desc.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -57,7 +57,7 @@
5757
]
5858
},
5959
"VideoAspect": {
60-
"type": "text",
60+
"type": "string",
6161
"lanKey": "setting_videoAspect",
6262
"descLanKey": "setting_videoAspect_desc"
6363
}

LiveWallpaperEngineLib/Controls/RenderForm.cs

+17-6
Original file line numberDiff line numberDiff line change
@@ -77,13 +77,24 @@ public Wallpaper Wallpaper
7777

7878
internal void SetAspect(string aspect)
7979
{
80-
if (player != null)
80+
try
8181
{
82-
//var test = player.API.GetPropertyString("video-aspect");
83-
if (string.IsNullOrEmpty(aspect))
84-
player.API.SetPropertyString("video-aspect", "-1.000000");
85-
else
86-
player.API.SetPropertyString("video-aspect", aspect);
82+
if (player != null)
83+
{
84+
//var test = player.API.GetPropertyString("video-aspect");
85+
if (string.IsNullOrEmpty(aspect))
86+
player.API.SetPropertyString("video-aspect", "-1.000000");
87+
else
88+
{
89+
//兼容中文分号
90+
aspect = aspect.Replace(":", ":");
91+
player.API.SetPropertyString("video-aspect", aspect);
92+
}
93+
}
94+
}
95+
catch (Exception ex)
96+
{
97+
System.Diagnostics.Debug.WriteLine(ex);
8798
}
8899
}
89100

0 commit comments

Comments
 (0)