AxWin2 - Huge changes, getting to the working point
[tpg/acess2.git] / Usermode / Applications / axwin2_src / WM / video_text.c
index 7cf1049..3d680d5 100644 (file)
@@ -2,6 +2,7 @@
  * Acess GUI (AxWin) Version 2
  * By John Hodge (thePowersGang)
  */
+#include <acess/sys.h>
 #include "common.h"
 
 typedef struct sGlyph {
@@ -43,6 +44,7 @@ struct sFont {
 
 // === PROTOTYPES ===
  int   Video_DrawText(short X, short Y, short W, short H, tFont *Font, uint32_t Color, char *Text);
+void   Video_GetTextDims(tFont *Font, const char *Text, int *W, int *H);
 tGlyph *_GetGlyph(tFont *Font, uint32_t Codepoint);
 void   _RenderGlyph(short X, short Y, tGlyph *Glyph, uint32_t Color);
 tGlyph *_SystemFont_CacheGlyph(tFont *Font, uint32_t Codepoint);
@@ -50,7 +52,7 @@ tGlyph        *_SystemFont_CacheGlyph(tFont *Font, uint32_t Codepoint);
 
 // === GLOBALS ===
 tFont  gSystemFont = {
-       CacheGlyph: _SystemFont_CacheGlyph
+       .CacheGlyph = _SystemFont_CacheGlyph
 };
 
 // === CODE ===

UCC git Repository :: git.ucc.asn.au