[slimdx] r2211 committed - Fixing issue with the WPF control. Resolves issue 887.

8 views
Skip to first unread message

sli...@googlecode.com

unread,
Jan 23, 2013, 11:05:07 PM1/23/13
to slimdx...@googlegroups.com
Revision: 2211
Author: Mike.Po...@gmail.com
Date: Wed Jan 23 20:04:40 2013
Log: Fixing issue with the WPF control. Resolves issue 887.
http://code.google.com/p/slimdx/source/detail?r=2211

Modified:
/trunk/samples/Direct3D9/WPF Interop/SlimDX.Wpf/SlimDXControl.xaml.cs

=======================================
--- /trunk/samples/Direct3D9/WPF Interop/SlimDX.Wpf/SlimDXControl.xaml.cs
Tue Aug 23 10:12:42 2011
+++ /trunk/samples/Direct3D9/WPF Interop/SlimDX.Wpf/SlimDXControl.xaml.cs
Wed Jan 23 20:04:40 2013
@@ -307,8 +307,8 @@
_presentParameters.SwapEffect = SwapEffect.Copy;
_presentParameters.DeviceWindowHandle = hwnd.Handle;
_presentParameters.Windowed = true;
- _presentParameters.BackBufferWidth = ((int) ActualWidth < 0) ? 1 :
(int) ActualWidth;
- _presentParameters.BackBufferHeight = ((int) ActualHeight < 0) ? 1 :
(int) ActualHeight;
+ _presentParameters.BackBufferWidth = ((int) ActualWidth <= 0) ? 1 :
(int) ActualWidth;
+ _presentParameters.BackBufferHeight = ((int) ActualHeight <= 0) ? 1 :
(int) ActualHeight;
_presentParameters.BackBufferFormat = _backbufferFormat;
_presentParameters.AutoDepthStencilFormat = _depthStencilFormat;

Reply all
Reply to author
Forward
0 new messages