dmuratshin 9 years ago
parent
commit
bbde946e88
2 changed files with 5 additions and 2 deletions
  1. 2 2
      oxygine/src/AnimationFrame.cpp
  2. 3 0
      tools/others/format.bat

+ 2 - 2
oxygine/src/AnimationFrame.cpp

@@ -85,7 +85,7 @@ namespace oxygine
         _diffuse.base = t;
         _diffuse.base = t;
         _diffuse.premultiplied = true;
         _diffuse.premultiplied = true;
         _srcRect = RectF(0, 0, 1, 1);
         _srcRect = RectF(0, 0, 1, 1);
-        _destRect = RectF(0, 0, t->getWidth(), t->getHeight());
-        _frameSize = Vector2(t->getWidth(), t->getHeight());
+        _destRect = RectF(0, 0, (float)t->getWidth(), (float)t->getHeight());
+        _frameSize = Vector2((float)t->getWidth(), (float)t->getHeight());
     }
     }
 }
 }

+ 3 - 0
tools/others/format.bat

@@ -20,6 +20,9 @@ echo %root%
 %astyle% %root%\oxygine-billing\examples\*.cpp %root%\oxygine-billing\examples\*.h %options%
 %astyle% %root%\oxygine-billing\examples\*.cpp %root%\oxygine-billing\examples\*.h %options%
 %astyle% %root%\oxygine-billing\src\*.cpp %root%\oxygine-billing\src\*.h %options%
 %astyle% %root%\oxygine-billing\src\*.cpp %root%\oxygine-billing\src\*.h %options%
 
 
+%astyle% %root%\oxygine-freetype\examples\*.cpp %root%\oxygine-freetype\examples\*.h %options%
+%astyle% %root%\oxygine-freetype\src\*.cpp %root%\oxygine-freetype\src\*.h %options%
+
 %astyle% %root%\oxygine-facebook\example\*.cpp %root%\oxygine-facebook\example\*.h %options%
 %astyle% %root%\oxygine-facebook\example\*.cpp %root%\oxygine-facebook\example\*.h %options%
 %astyle% %root%\oxygine-facebook\src\*.cpp %root%\oxygine-facebook\src\*.h %options%
 %astyle% %root%\oxygine-facebook\src\*.cpp %root%\oxygine-facebook\src\*.h %options%