ecere/gfx/LFBDisplayDriver: Made font ascent available through property
[sdk] / ecere / src / gfx / drivers / LFBDisplayDriver.ec
index 31d7e50..bbe5615 100644 (file)
@@ -705,6 +705,10 @@ public class Font : struct
       }
 #endif
    }
+   public property int ascent
+   {
+      get { return (int)(this ? ascent * scale : 0); }
+   }
 };
 
 public class LFBDisplay : struct
@@ -3666,6 +3670,7 @@ public class LFBDisplayDriver : DisplayDriver
       bool result = false;
       if(mesh.nVertices == nVertices)
       {
+         result = true;
          // Same number of vertices, adding features (Leaves the other features pointers alone)
          if(mesh.flags != flags)
          {
@@ -3695,6 +3700,7 @@ public class LFBDisplayDriver : DisplayDriver
       }
       else
       {
+         result = true;
          // New number of vertices, reallocate all current and new features
          flags |= mesh.flags;
          if(flags.vertices)