Procházet zdrojové kódy

Merge pull request #669 from dgough/next

Fixed the text layout of the TextureTest
Sean Paul Taylor před 13 roky
rodič
revize
85f358fa57
1 změnil soubory, kde provedl 2 přidání a 2 odebrání
  1. 2 2
      gameplay/src/Font.cpp

+ 2 - 2
gameplay/src/Font.cpp

@@ -272,7 +272,7 @@ Font::Text* Font::createText(const char* text, const Rectangle& area, const Vect
         }
 
         bool draw = true;
-        if (yPos < area.y)
+        if (yPos < static_cast<int>(area.y))
         {
             // Skip drawing until line break or wrap.
             draw = false;
@@ -629,7 +629,7 @@ void Font::drawText(const char* text, const Rectangle& area, const Vector4& colo
         }
 
         bool draw = true;
-        if (yPos < area.y - size)
+        if (yPos < static_cast<int>(area.y - size))
         {
             // Skip drawing until line break or wrap.
             draw = false;