فهرست منبع

Fixed the text layout of the TextureTest

Darryl Gough 13 سال پیش
والد
کامیت
dbfed97720
1فایلهای تغییر یافته به همراه2 افزوده شده و 2 حذف شده
  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;
         bool draw = true;
-        if (yPos < area.y)
+        if (yPos < static_cast<int>(area.y))
         {
         {
             // Skip drawing until line break or wrap.
             // Skip drawing until line break or wrap.
             draw = false;
             draw = false;
@@ -629,7 +629,7 @@ void Font::drawText(const char* text, const Rectangle& area, const Vector4& colo
         }
         }
 
 
         bool draw = true;
         bool draw = true;
-        if (yPos < area.y - size)
+        if (yPos < static_cast<int>(area.y - size))
         {
         {
             // Skip drawing until line break or wrap.
             // Skip drawing until line break or wrap.
             draw = false;
             draw = false;