DEADSOFTWARE

gl: align hud elements
[d2df-sdl.git] / src / game / renders / opengl / r_textures.pas
index 5950e36f6f272bf67b39af7fd2cfac386291ae6a..b51afd2e964bfbd9a76e2edddc8cf4641a43e97f 100644 (file)
@@ -111,6 +111,7 @@ interface
         destructor Destroy; override;
         function GetChar (c: AnsiChar): TGLTexture;
         function GetWidth (c: AnsiChar): Integer;
+        function GetMaxHeight (): Integer;
         function GetSpace (): Integer;
     end;
 
@@ -779,6 +780,11 @@ implementation
       result := self.info.w;
   end;
 
+  function TGLFont.GetMaxHeight (): Integer;
+  begin
+    result := self.info.h;
+  end;
+
   function TGLFont.GetSpace (): Integer;
   begin
     result := self.info.kern;