dmuratshin 9 years ago
parent
commit
cc060f1ea2
2 changed files with 3 additions and 3 deletions
  1. 1 1
      examples/HelloFreeType/src/example.cpp
  2. 2 2
      src/ResFontFT.cpp

+ 1 - 1
examples/HelloFreeType/src/example.cpp

@@ -174,7 +174,7 @@ void myShadowsFilter(ResFontFT::postProcessData& data)
     //initialize destination Image with increased size
     //initialize destination Image with increased size
     destIm.init(src.w + xoffset, src.h + yoffset, TF_R8G8B8A8);
     destIm.init(src.w + xoffset, src.h + yoffset, TF_R8G8B8A8);
     //clear it
     //clear it
-    destIm.fill_zero();
+    destIm.fillZero();
 
 
 
 
     //copy black image as shadow
     //copy black image as shadow

+ 2 - 2
src/ResFontFT.cpp

@@ -282,7 +282,7 @@ namespace oxygine
     {
     {
         MemoryTexture mt;
         MemoryTexture mt;
         mt.init(FT_ATLAS_SIZE.x, FT_ATLAS_SIZE.y, TF_R8G8B8A8);
         mt.init(FT_ATLAS_SIZE.x, FT_ATLAS_SIZE.y, TF_R8G8B8A8);
-        mt.fill_zero();
+        mt.fillZero();
 
 
         spNativeTexture texture = IVideoDriver::instance->createTexture();
         spNativeTexture texture = IVideoDriver::instance->createTexture();
         texture->init(mt.lock());
         texture->init(mt.lock());
@@ -324,7 +324,7 @@ namespace oxygine
 #ifdef OX_HAS_GLOBAL_TF_SCALE
 #ifdef OX_HAS_GLOBAL_TF_SCALE
     const oxygine::Font* ResFontFT::getClosestFont(float worldScale, int styleFontSize, float& resScale) const
     const oxygine::Font* ResFontFT::getClosestFont(float worldScale, int styleFontSize, float& resScale) const
     {
     {
-        int fontSize = styleFontSize * worldScale;
+        int fontSize = (int)(styleFontSize * worldScale);
         if (!fontSize)
         if (!fontSize)
             return 0;
             return 0;
         if (fontSize > FT_SNAP_SIZE)
         if (fontSize > FT_SNAP_SIZE)