Remove need for COutputWnd.

This commit is contained in:
Jean-Philip Desjardins 2017-04-09 15:09:30 -04:00
parent 1ac2bcd2be
commit 21b47ad187
2 changed files with 2 additions and 3 deletions

View File

@ -35,7 +35,7 @@ static const PRESENTVERTEX g_presentVertices[] =
};
CGSH_Direct3D9::CGSH_Direct3D9(Framework::Win32::CWindow* outputWindow)
: m_outputWnd(dynamic_cast<COutputWnd*>(outputWindow))
: m_outputWnd(outputWindow)
{
memset(&m_renderState, 0, sizeof(m_renderState));
m_primitiveMode <<= 0;

View File

@ -5,7 +5,6 @@
#include "win32/Window.h"
#include "win32/ComPtr.h"
#include "bitmap/Bitmap.h"
#include "OutputWnd.h"
#include "nuanceur/Builder.h"
#ifdef _DEBUG
#define D3D_DEBUG_INFO
@ -209,7 +208,7 @@ private:
bool m_alphaBlendingEnabled = true;
bool m_alphaTestingEnabled = true;
COutputWnd* m_outputWnd = nullptr;
Framework::Win32::CWindow* m_outputWnd = nullptr;
Direct3DPtr m_d3d;
DevicePtr m_device;