From 94c04a961ee2f91d0f332bb454de6d59c805cbde Mon Sep 17 00:00:00 2001 From: BleuBleu Date: Wed, 17 Mar 2021 14:31:39 +0800 Subject: [PATCH] Better message and change log. --- Docs/docs/changelog.md | 1 + FamiStudio/Source/UI/Windows/Direct2DGraphics.cs | 3 ++- 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/Docs/docs/changelog.md b/Docs/docs/changelog.md index e1255208b..04ee27ac6 100644 --- a/Docs/docs/changelog.md +++ b/Docs/docs/changelog.md @@ -8,6 +8,7 @@ Fixes: * Fixed corruption when importing looping samples from .FTI files. * Fixed minor graphical issue in piano roll. +* Fixed issues on Windows 7 installations that are missing some D3D11 components such as KB2670838. * Removed 320 kbps MP3 export option since it creates choppy audio. ## Version 2.4.0 diff --git a/FamiStudio/Source/UI/Windows/Direct2DGraphics.cs b/FamiStudio/Source/UI/Windows/Direct2DGraphics.cs index 9884fd30e..4c47f287a 100644 --- a/FamiStudio/Source/UI/Windows/Direct2DGraphics.cs +++ b/FamiStudio/Source/UI/Windows/Direct2DGraphics.cs @@ -507,8 +507,9 @@ private Direct2DOffscreenGraphics(int imageSizeX, int imageSizeY) CreateFactory(); renderTarget = new RenderTarget(factory, offscreenTexture.QueryInterface(), new RenderTargetProperties(new SharpDX.Direct2D1.PixelFormat(Format.Unknown, AlphaMode.Premultiplied))); } - catch + catch (Exception e) { + Log.LogMessage(LogSeverity.Error, e.Message); Log.LogMessage(LogSeverity.Error, "Error initializing D3D11. This can happen on Windows 7 system that are missing some D3D11 components such as the KB2670838 update."); return; }