From c858826b34843ce32e13c24375ed1404bb6ea9af Mon Sep 17 00:00:00 2001
From: Nomango <569629550@qq.com>
Date: Tue, 24 Jul 2018 23:27:59 +0800
Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E5=A4=8D=E7=A9=BA=E6=8C=87=E9=92=88?=
 =?UTF-8?q?=E5=BC=82=E5=B8=B8?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
 core/Base/Game.cpp            | 2 ++
 core/Base/Renderer.cpp        | 4 ++--
 project/vs2017/Easy2D.vcxproj | 2 +-
 3 files changed, 5 insertions(+), 3 deletions(-)
diff --git a/core/Base/Game.cpp b/core/Base/Game.cpp
index 1ba15bb8..ca575d4f 100644
--- a/core/Base/Game.cpp
+++ b/core/Base/Game.cpp
@@ -51,6 +51,8 @@ void e2d::Game::start()
 	// 显示窗口
 	::ShowWindow(hWnd, SW_SHOWNORMAL);
 	::UpdateWindow(hWnd);
+
+	SceneManager::getInstance()->update();
 	Window::getInstance()->poll();
 
 	// 开始游戏
diff --git a/core/Base/Renderer.cpp b/core/Base/Renderer.cpp
index 7973e183..b730475b 100644
--- a/core/Base/Renderer.cpp
+++ b/core/Base/Renderer.cpp
@@ -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(
diff --git a/project/vs2017/Easy2D.vcxproj b/project/vs2017/Easy2D.vcxproj
index b5f050a0..20c352ab 100644
--- a/project/vs2017/Easy2D.vcxproj
+++ b/project/vs2017/Easy2D.vcxproj
@@ -101,7 +101,7 @@
       Disabled
       WIN32;_DEBUG;_CONSOLE;%(PreprocessorDefinitions)
       false
-      None
+      EditAndContinue
       false
       true