Panagiotis Christopoulos Charitos 15 年之前
父节点
当前提交
120190f7d4
共有 2 个文件被更改,包括 7 次插入4 次删除
  1. 5 3
      src/Core/App.cpp
  2. 2 1
      src/Scene/SkinNode.h

+ 5 - 3
src/Core/App.cpp

@@ -227,7 +227,7 @@ void App::initRenderer()
 void App::togleFullScreen()
 void App::togleFullScreen()
 {
 {
 	//SDL_WM_ToggleFullScreen(mainSurf);
 	//SDL_WM_ToggleFullScreen(mainSurf);
-	SDL_SetWindowFullscreen(windowId, fullScreenFlag);
+	SDL_SetWindowFullscreen(windowId, fullScreenFlag ? SDL_TRUE : SDL_FALSE);
 	fullScreenFlag = !fullScreenFlag;
 	fullScreenFlag = !fullScreenFlag;
 }
 }
 
 
@@ -316,7 +316,8 @@ void App::printAppInfo()
 uint App::getDesktopWidth() const
 uint App::getDesktopWidth() const
 {
 {
 	SDL_DisplayMode mode;
 	SDL_DisplayMode mode;
-	SDL_GetDesktopDisplayMode(&mode);
+	/// @todo re-enable it
+	//SDL_GetDesktopDisplayMode(&mode);
 	return mode.w;
 	return mode.w;
 }
 }
 
 
@@ -327,7 +328,8 @@ uint App::getDesktopWidth() const
 uint App::getDesktopHeight() const
 uint App::getDesktopHeight() const
 {
 {
 	SDL_DisplayMode mode;
 	SDL_DisplayMode mode;
-	SDL_GetDesktopDisplayMode(&mode);
+	/// @todo re-enable it
+	//SDL_GetDesktopDisplayMode(&mode);
 	return mode.h;
 	return mode.h;
 }
 }
 
 

+ 2 - 1
src/Scene/SkinNode.h

@@ -40,7 +40,8 @@ class SkinNode: public SceneNode
 
 
 		void init(const char* filename);
 		void init(const char* filename);
 
 
-		/// Update boundingShapeWSpace from bone tails (not bone and heads cause its faster that way)
+		/// Update boundingShapeWSpace from bone tails (not bone and heads cause its faster that way). The tails come from
+		/// the previous frame
 		void updateTrf();
 		void updateTrf();
 
 
 	private:
 	private: