Panagiotis Christopoulos Charitos 15 yıl önce
ebeveyn
işleme
120190f7d4
2 değiştirilmiş dosya ile 7 ekleme ve 4 silme
  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()
 {
 	//SDL_WM_ToggleFullScreen(mainSurf);
-	SDL_SetWindowFullscreen(windowId, fullScreenFlag);
+	SDL_SetWindowFullscreen(windowId, fullScreenFlag ? SDL_TRUE : SDL_FALSE);
 	fullScreenFlag = !fullScreenFlag;
 }
 
@@ -316,7 +316,8 @@ void App::printAppInfo()
 uint App::getDesktopWidth() const
 {
 	SDL_DisplayMode mode;
-	SDL_GetDesktopDisplayMode(&mode);
+	/// @todo re-enable it
+	//SDL_GetDesktopDisplayMode(&mode);
 	return mode.w;
 }
 
@@ -327,7 +328,8 @@ uint App::getDesktopWidth() const
 uint App::getDesktopHeight() const
 {
 	SDL_DisplayMode mode;
-	SDL_GetDesktopDisplayMode(&mode);
+	/// @todo re-enable it
+	//SDL_GetDesktopDisplayMode(&mode);
 	return mode.h;
 }
 

+ 2 - 1
src/Scene/SkinNode.h

@@ -40,7 +40,8 @@ class SkinNode: public SceneNode
 
 		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();
 
 	private: