X-Git-Url: https://git.ucc.asn.au/?a=blobdiff_plain;f=Usermode%2FApplications%2Faxwin2_src%2FWM%2Fvideo_text.c;h=3d680d5d188ee0420fae2d803c2cec1cbc317a55;hb=637ff4245d413a9269a4450c17e48b784ecf0694;hp=7cf104932791eb54faea3bbfc711ff094f78da2d;hpb=9bf83176e50b61185f11e0742f89464d870381df;p=tpg%2Facess2.git diff --git a/Usermode/Applications/axwin2_src/WM/video_text.c b/Usermode/Applications/axwin2_src/WM/video_text.c index 7cf10493..3d680d5d 100644 --- a/Usermode/Applications/axwin2_src/WM/video_text.c +++ b/Usermode/Applications/axwin2_src/WM/video_text.c @@ -2,6 +2,7 @@ * Acess GUI (AxWin) Version 2 * By John Hodge (thePowersGang) */ +#include #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 ===