Skip to content

Commit

Permalink
D2D bug fix.
Browse files Browse the repository at this point in the history
  • Loading branch information
habibrehmansg committed Dec 16, 2024
1 parent 112b87a commit ca3f7d1
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion InfoPanel/InfoPanel.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -209,7 +209,7 @@

<ItemGroup>
<None Update="Lib\d2dlib64.dll">
<CopyToOutputDirectory>Never</CopyToOutputDirectory>
<CopyToOutputDirectory>Always</CopyToOutputDirectory>
<TargetPath>d2dlib64.dll</TargetPath>
</None>
<None Update="NunitoSans_7pt_Condensed-BlackItalic.ttf">
Expand Down
6 changes: 3 additions & 3 deletions InfoPanel/Views/DisplayWindow.xaml.cs
Original file line number Diff line number Diff line change
Expand Up @@ -33,8 +33,8 @@ public partial class DisplayWindow : D2DWindow
private readonly DispatcherTimer ResizeTimer;
public WriteableBitmap? WriteableBitmap;

private MediaTimeline mediaTimeline;
private MediaClock mediaClock;
private MediaTimeline? mediaTimeline;
private MediaClock? mediaClock;

public DisplayWindow(Profile profile) : base(profile.Direct2DMode)
{
Expand Down Expand Up @@ -583,7 +583,7 @@ private async void Window_Loaded(object sender, RoutedEventArgs e)
if (!Profile.Direct2DMode && Profile.VideoBackgroundFilePath is string filePath)
{
var videoFilePath = FileUtil.GetRelativeAssetPath(Profile, filePath);
LoadVideoBackground(videoFilePath);
await LoadVideoBackground(videoFilePath);
}
}

Expand Down

0 comments on commit ca3f7d1

Please sign in to comment.