Skip to content

Commit

Permalink
发布
Browse files Browse the repository at this point in the history
  • Loading branch information
snowlab committed Jan 9, 2019
1 parent 679fd76 commit e56d796
Show file tree
Hide file tree
Showing 3 changed files with 19 additions and 8 deletions.
2 changes: 1 addition & 1 deletion LiveWallpaper.App/Package.appxmanifest
@@ -1,6 +1,6 @@
<?xml version="1.0" encoding="utf-8"?>
<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">
<Identity Name="24765mscoder.47921C962EDAD" Publisher="CN=49BC8659-1B4C-4520-B1FB-ED98CFA366C4" Version="1.1.17.0" />
<Identity Name="24765mscoder.47921C962EDAD" Publisher="CN=49BC8659-1B4C-4520-B1FB-ED98CFA366C4" Version="1.1.20.0" />
<Properties>
<DisplayName>巨应动态壁纸</DisplayName>
<PublisherDisplayName>巨应工作室 MscoderStudio</PublisherDisplayName>
Expand Down
2 changes: 1 addition & 1 deletion LiveWallpaper/Res/setting.desc.json
Expand Up @@ -57,7 +57,7 @@
]
},
"VideoAspect": {
"type": "text",
"type": "string",
"lanKey": "setting_videoAspect",
"descLanKey": "setting_videoAspect_desc"
}
Expand Down
23 changes: 17 additions & 6 deletions LiveWallpaperEngineLib/Controls/RenderForm.cs
Expand Up @@ -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);
}
}

Expand Down

0 comments on commit e56d796

Please sign in to comment.