修复空指针异常

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);
::UpdateWindow(hWnd);
SceneManager::getInstance()->update();
Window::getInstance()->poll();
// żŞĘźÓÎϡ

View File

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

View File

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