修复空指针异常

This commit is contained in:
Nomango 2018-07-24 23:27:59 +08:00
parent 649eaa6ee6
commit c858826b34
3 changed files with 5 additions and 3 deletions

View File

@ -51,6 +51,8 @@ void e2d::Game::start()
// ĎÔĘž´°żÚ // ĎÔĘž´°żÚ
::ShowWindow(hWnd, SW_SHOWNORMAL); ::ShowWindow(hWnd, SW_SHOWNORMAL);
::UpdateWindow(hWnd); ::UpdateWindow(hWnd);
SceneManager::getInstance()->update();
Window::getInstance()->poll(); Window::getInstance()->poll();
// żŞĘźÓÎϡ // żŞĘźÓÎϡ

View File

@ -147,8 +147,8 @@ void e2d::Renderer::_renderFps()
if (SUCCEEDED(hr)) if (SUCCEEDED(hr))
{ {
_renderTarget->SetTransform(D2D1::Matrix3x2F::Identity()); this->getRenderTarget()->SetTransform(D2D1::Matrix3x2F::Identity());
_solidBrush->SetOpacity(1.0f); this->getSolidColorBrush()->SetOpacity(1.0f);
auto textRenderer = this->getTextRenderer(); auto textRenderer = this->getTextRenderer();
textRenderer->SetTextStyle( textRenderer->SetTextStyle(

View File

@ -101,7 +101,7 @@
<Optimization>Disabled</Optimization> <Optimization>Disabled</Optimization>
<PreprocessorDefinitions>WIN32;_DEBUG;_CONSOLE;%(PreprocessorDefinitions)</PreprocessorDefinitions> <PreprocessorDefinitions>WIN32;_DEBUG;_CONSOLE;%(PreprocessorDefinitions)</PreprocessorDefinitions>
<SDLCheck>false</SDLCheck> <SDLCheck>false</SDLCheck>
<DebugInformationFormat>None</DebugInformationFormat> <DebugInformationFormat>EditAndContinue</DebugInformationFormat>
<MinimalRebuild>false</MinimalRebuild> <MinimalRebuild>false</MinimalRebuild>
<TreatWarningAsError>true</TreatWarningAsError> <TreatWarningAsError>true</TreatWarningAsError>
</ClCompile> </ClCompile>