修复空指针异常
This commit is contained in:
parent
649eaa6ee6
commit
c858826b34
|
|
@ -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();
|
||||||
|
|
||||||
// żŞĘźÓÎϡ
|
// żŞĘźÓÎϡ
|
||||||
|
|
|
||||||
|
|
@ -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(
|
||||||
|
|
|
||||||
|
|
@ -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>
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue