From 612bee1c72e64f48575b1c195b11e12606b46a8f Mon Sep 17 00:00:00 2001 From: Maxence DELANNOY Date: Fri, 27 Mar 2015 10:04:21 +0100 Subject: [PATCH] Text not shown (white on white) Device should be cleared with black. --- WindowsDesktop/Direct3D10/DisplayFontApp/Program.cs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/WindowsDesktop/Direct3D10/DisplayFontApp/Program.cs b/WindowsDesktop/Direct3D10/DisplayFontApp/Program.cs index 969131c1..fd1f65f2 100644 --- a/WindowsDesktop/Direct3D10/DisplayFontApp/Program.cs +++ b/WindowsDesktop/Direct3D10/DisplayFontApp/Program.cs @@ -68,7 +68,7 @@ protected override void Draw(DemoTime time) { base.Draw(time); - Device.ClearRenderTargetView(BackBufferView, Color.White); + Device.ClearRenderTargetView(BackBufferView, Color.Black); // Make the text boucing on the screen limits if ((fontDimension.Right + xDir) > Config.Width) @@ -97,4 +97,4 @@ static void Main(string[] args) program.Run(new DemoConfiguration("SharpDX D3D10 Font Rendering Demo") { WaitVerticalBlanking = true }); } } -} \ No newline at end of file +}