Using the Jan2012 release of SlimDX, and tutorial code checked out from svn. In
the InitializeDevice() method of
samples.Direct3D9.WPFInteropt.SlimDX.WPF.SlimDXControl.xaml.cs line 310 and 311
needs to be changed from"
<code>
_presentParameters.BackBufferWidth = ((int) ActualWidth < 0) ? 1 : (int)
ActualWidth;
_presentParameters.BackBufferHeight = ((int) ActualHeight < 0) ? 1 : (int)
ActualHeight;
</code>
to :
<code>
_presentParameters.BackBufferWidth = ((int) ActualWidth <= 0) ? 1 : (int)
ActualWidth;
_presentParameters.BackBufferHeight = ((int) ActualHeight <= 0) ? 1 : (int)
ActualHeight;
</code>
in order to be compatible with visual studio 2012. I am running currently in
NET 4.0 mode, with windows 7. The old code worked fine with vs 2010 in the
configuration, but breaks in vs2012.
Original issue reported on code.google.com by sphad...@gmail.com on 8 Nov 2012 at 7:02
Original issue reported on code.google.com by
sphad...@gmail.com
on 8 Nov 2012 at 7:02